From e93fe44f8e2e571fc1f7579d8e4335ec44c027b9 Mon Sep 17 00:00:00 2001 From: David Faure Date: Sun, 8 Sep 2019 17:12:32 +0200 Subject: [PATCH] Connect to new signal QComboBox::textActivated, to fix compilation with Qt 5.14 --- src/search/searchpatternedit.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/search/searchpatternedit.cpp b/src/search/searchpatternedit.cpp index 0f24626..8f8d500 100644 --- a/src/search/searchpatternedit.cpp +++ b/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::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,