Commit 4428bf2c authored by Laurent Montel's avatar Laurent Montel 😁

Remove QT_CHECK

parent 34802e34
......@@ -166,11 +166,7 @@ void ContactGroupExpandJob::start()
d->searchResult(job);
});
} else {
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
QMetaObject::invokeMethod(this, [this]() { d->resolveGroup(); }, Qt::QueuedConnection);
#else
QMetaObject::invokeMethod(this, "resolveGroup", Qt::QueuedConnection);
#endif
}
}
......
......@@ -244,12 +244,7 @@ void DisplayNameEditWidget::updateView()
mView->setItemText(5, mContact.formattedName());
// delay the state change here, since we might have been called from mView via a signal
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
QMetaObject::invokeMethod(this, [this]() { setComboBoxEditable(mDisplayType == CustomName); }, Qt::QueuedConnection);
#else
QMetaObject::invokeMethod(this, "setComboBoxEditable", Qt::QueuedConnection, Q_ARG(bool, mDisplayType == CustomName));
#endif
mView->setCurrentIndex((int)mDisplayType);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment