Drop Qt5: Cpp/TextEditor: Get rid of QOverload

Change-Id: I010f211b40f876c0f033fd717aaa094f775ea214
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Jarek Kobus
2022-07-19 23:36:11 +02:00
parent ebd0dd6ebc
commit 44f1fd6498
14 changed files with 27 additions and 34 deletions

View File

@@ -3138,7 +3138,7 @@ public:
if (!implFile.isEmpty())
implTargetStrings.append(implFile.fileName());
defaultImplTargetComboBox->insertItems(0, implTargetStrings);
connect(defaultImplTargetComboBox, qOverload<int>(&QComboBox::currentIndexChanged), this,
connect(defaultImplTargetComboBox, &QComboBox::currentIndexChanged, this,
[this](int index) {
for (int i = 0; i < m_implTargetBoxes.size(); ++i) {
if (!m_candidates.at(i)->type()->asFunctionType()->isPureVirtual())
@@ -8762,7 +8762,7 @@ public:
using A = InsertionPointLocator::AccessSpec;
auto accessCombo = new QComboBox;
connect(accessCombo, qOverload<int>(&QComboBox::currentIndexChanged), [this, accessCombo]() {
connect(accessCombo, &QComboBox::currentIndexChanged, this, [this, accessCombo] {
const auto data = accessCombo->currentData();
m_accessSpec = static_cast<A>(data.toInt());
});