QComboBox: revert deprecation of currentIndexChanged(QString)
QComboBox::currentIndexChanged(QString) was deprecated due to the fact that there is a currentTextChanged(QString) signal but this signal is not equivalent to the other since it's also emitted when the lineedit text changes. Therefore revert the deprecation of this signal. Fixes: QTBUG-76890 Change-Id: Ia314116a5ac4e43e60383da9e729e24ffb3e8b30 Reviewed-by: Albert Astals Cid <aacid@kde.org> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
parent
0a37378e7a
commit
298f750cdb
@ -896,11 +896,6 @@ QStyleOptionComboBox QComboBoxPrivateContainer::comboStyleOption() const
|
||||
\fn void QComboBox::currentIndexChanged(const QString &text)
|
||||
\since 4.1
|
||||
|
||||
\obsolete
|
||||
|
||||
Use currentTextChanged(const QString &) or currentIndexChanged(int)
|
||||
instead.
|
||||
|
||||
This signal is sent whenever the currentIndex in the combobox
|
||||
changes either through user interaction or programmatically. The
|
||||
item's \a text is passed.
|
||||
|
@ -227,10 +227,7 @@ Q_SIGNALS:
|
||||
void highlighted(int index);
|
||||
void highlighted(const QString &);
|
||||
void currentIndexChanged(int index);
|
||||
#if QT_DEPRECATED_SINCE(5, 13)
|
||||
QT_DEPRECATED_X("Use currentTextChanged() instead")
|
||||
void currentIndexChanged(const QString &);
|
||||
#endif
|
||||
void currentTextChanged(const QString &);
|
||||
|
||||
protected:
|
||||
|
Loading…
Reference in New Issue
Block a user