Connect to new signal QComboBox::textActivated, to fix compilation with Qt 5.14

wilder
David Faure 7 years ago
parent 2494c693d1
commit e93fe44f8e
  1. 5
      src/search/searchpatternedit.cpp

@ -205,8 +205,13 @@ void SearchRuleWidget::initWidget(SearchPatternEdit::SearchModeType modeType)
// redirect focus to the header field combo box
setFocusProxy(mRuleField);
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
connect(mRuleField, QOverload<const QString &>::of(&QComboBox::activated),
this, &SearchRuleWidget::slotRuleFieldChanged);
#else
connect(mRuleField, &QComboBox::textActivated,
this, &SearchRuleWidget::slotRuleFieldChanged);
#endif
connect(mRuleField, &QComboBox::editTextChanged,
this, &SearchRuleWidget::slotRuleFieldChanged);
connect(mRuleField, &QComboBox::editTextChanged,

Loading…
Cancel
Save