Browse Source

QGCComboBox: Use textActivated over deprecated activated(QString) in Qt 5.15

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
QGC4.4
Patrick José Pereira 5 years ago
parent
commit
23487ebaf3
  1. 4
      src/QGCComboBox.cc

4
src/QGCComboBox.cc

@ -24,5 +24,9 @@ void QGCComboBox::simulateUserSetCurrentIndex(int index) @@ -24,5 +24,9 @@ void QGCComboBox::simulateUserSetCurrentIndex(int index)
// We have to manually signal activated
emit activated(index);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
emit activated(itemText(index));
#else
emit textActivated(itemText(index));
#endif
}

Loading…
Cancel
Save