|
|
@@ -110,8 +110,14 @@ EnvironmentDialog::EnvironmentDialog(const QProcessEnvironment& environment,
|
|
|
&EnvironmentDialog::addEntry);
|
|
|
QObject::connect(this->RemoveEntry, &QAbstractButton::clicked, this,
|
|
|
&EnvironmentDialog::removeSelectedEntries);
|
|
|
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0))
|
|
|
+ QObject::connect(this->Search, &QLineEdit::textChanged, this->m_filter,
|
|
|
+ QOverload<const QString&>::of(
|
|
|
+ &EnvironmentSearchFilter::setFilterRegularExpression));
|
|
|
+#else
|
|
|
QObject::connect(this->Search, &QLineEdit::textChanged, this->m_filter,
|
|
|
&EnvironmentSearchFilter::setFilterFixedString);
|
|
|
+#endif
|
|
|
QObject::connect(this->Environment->selectionModel(),
|
|
|
&QItemSelectionModel::selectionChanged, this,
|
|
|
&EnvironmentDialog::selectionChanged);
|