forked from qt-creator/qt-creator
Drop Qt5: Debugger: Get rid of QOverload
Change-Id: Ic62a3173adeffdfa78a47849cf1ceaa4f59b8091 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -80,9 +80,7 @@ AnalyzerRunConfigWidget::AnalyzerRunConfigWidget(ProjectExplorer::GlobalOrProjec
|
|||||||
|
|
||||||
chooseSettings(aspect->isUsingGlobalSettings() ? 0 : 1);
|
chooseSettings(aspect->isUsingGlobalSettings() ? 0 : 1);
|
||||||
|
|
||||||
connect(settingsCombo, QOverload<int>::of(&QComboBox::activated),
|
connect(settingsCombo, &QComboBox::activated, this, chooseSettings);
|
||||||
this, chooseSettings);
|
|
||||||
|
|
||||||
connect(restoreButton, &QPushButton::clicked,
|
connect(restoreButton, &QPushButton::clicked,
|
||||||
aspect, &ProjectExplorer::GlobalOrProjectAspect::resetProjectToGlobalSettings);
|
aspect, &ProjectExplorer::GlobalOrProjectAspect::resetProjectToGlobalSettings);
|
||||||
}
|
}
|
||||||
|
@@ -542,8 +542,7 @@ BreakpointDialog::BreakpointDialog(unsigned int enabledParts, QWidget *parent)
|
|||||||
verticalLayout->addWidget(m_buttonBox);
|
verticalLayout->addWidget(m_buttonBox);
|
||||||
verticalLayout->setStretchFactor(groupBoxAdvanced, 10);
|
verticalLayout->setStretchFactor(groupBoxAdvanced, 10);
|
||||||
|
|
||||||
connect(m_comboBoxType, QOverload<int>::of(&QComboBox::activated),
|
connect(m_comboBoxType, &QComboBox::activated, this, &BreakpointDialog::typeChanged);
|
||||||
this, &BreakpointDialog::typeChanged);
|
|
||||||
connect(m_buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
|
connect(m_buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
|
||||||
connect(m_buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
|
connect(m_buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
|
||||||
}
|
}
|
||||||
|
@@ -329,7 +329,7 @@ StartApplicationDialog::StartApplicationDialog(QWidget *parent)
|
|||||||
this, &StartApplicationDialog::updateState);
|
this, &StartApplicationDialog::updateState);
|
||||||
connect(d->buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
|
connect(d->buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
|
||||||
connect(d->buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
|
connect(d->buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
|
||||||
connect(d->historyComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
|
connect(d->historyComboBox, &QComboBox::currentIndexChanged,
|
||||||
this, &StartApplicationDialog::historyIndexChanged);
|
this, &StartApplicationDialog::historyIndexChanged);
|
||||||
|
|
||||||
connect(d->channelOverrideEdit, &QLineEdit::textChanged,
|
connect(d->channelOverrideEdit, &QLineEdit::textChanged,
|
||||||
|
@@ -68,7 +68,7 @@ public:
|
|||||||
|
|
||||||
refresh();
|
refresh();
|
||||||
m_comboBox->setToolTip(ki->description());
|
m_comboBox->setToolTip(ki->description());
|
||||||
connect(m_comboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
|
connect(m_comboBox, &QComboBox::currentIndexChanged,
|
||||||
this, &DebuggerKitAspectWidget::currentDebuggerChanged);
|
this, &DebuggerKitAspectWidget::currentDebuggerChanged);
|
||||||
|
|
||||||
m_manageButton = createManageButton(ProjectExplorer::Constants::DEBUGGER_SETTINGS_PAGE_ID);
|
m_manageButton = createManageButton(ProjectExplorer::Constants::DEBUGGER_SETTINGS_PAGE_ID);
|
||||||
|
@@ -192,7 +192,7 @@ DebuggerMainWindowPrivate::DebuggerMainWindowPrivate(DebuggerMainWindow *parent)
|
|||||||
m_perspectiveChooser->setObjectName("PerspectiveChooser");
|
m_perspectiveChooser->setObjectName("PerspectiveChooser");
|
||||||
m_perspectiveChooser->setProperty("panelwidget", true);
|
m_perspectiveChooser->setProperty("panelwidget", true);
|
||||||
m_perspectiveChooser->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
m_perspectiveChooser->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
||||||
connect(m_perspectiveChooser, QOverload<int>::of(&QComboBox::activated), this, [this](int item) {
|
connect(m_perspectiveChooser, &QComboBox::activated, this, [this](int item) {
|
||||||
Perspective *perspective = Perspective::findPerspective(m_perspectiveChooser->itemData(item).toString());
|
Perspective *perspective = Perspective::findPerspective(m_perspectiveChooser->itemData(item).toString());
|
||||||
QTC_ASSERT(perspective, return);
|
QTC_ASSERT(perspective, return);
|
||||||
if (auto subPerspective = Perspective::findPerspective(perspective->d->m_lastActiveSubPerspectiveId))
|
if (auto subPerspective = Perspective::findPerspective(perspective->d->m_lastActiveSubPerspectiveId))
|
||||||
|
@@ -143,7 +143,7 @@ public:
|
|||||||
if (hideSwitcherUnlessNeeded)
|
if (hideSwitcherUnlessNeeded)
|
||||||
m_engineChooser->hide();
|
m_engineChooser->hide();
|
||||||
|
|
||||||
connect(m_engineChooser, QOverload<int>::of(&QComboBox::activated),
|
connect(m_engineChooser, &QComboBox::activated,
|
||||||
this, &EngineManagerPrivate::activateEngineByIndex);
|
this, &EngineManagerPrivate::activateEngineByIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2438,7 +2438,7 @@ void QmlEnginePrivate::stateChanged(State state)
|
|||||||
BreakpointManager::claimBreakpointsForEngine(engine);
|
BreakpointManager::claimBreakpointsForEngine(engine);
|
||||||
|
|
||||||
// Since the breakpoint claiming is deferred, we need to also defer the connecting
|
// Since the breakpoint claiming is deferred, we need to also defer the connecting
|
||||||
QTimer::singleShot(0, this, [this]() {
|
QTimer::singleShot(0, this, [this] {
|
||||||
/// Start session.
|
/// Start session.
|
||||||
flushSendBuffer();
|
flushSendBuffer();
|
||||||
QJsonObject parameters;
|
QJsonObject parameters;
|
||||||
|
@@ -69,8 +69,8 @@ SymbolPathsDialog::SymbolPathsDialog(QWidget *parent) :
|
|||||||
buttonBox->setOrientation(Qt::Horizontal);
|
buttonBox->setOrientation(Qt::Horizontal);
|
||||||
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
|
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
|
||||||
|
|
||||||
connect(buttonBox, &QDialogButtonBox::accepted, this, qOverload<>(&QDialog::accept));
|
connect(buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
|
||||||
connect(buttonBox, &QDialogButtonBox::rejected, this, qOverload<>(&QDialog::reject));
|
connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
|
||||||
|
|
||||||
auto horizontalLayout = new QHBoxLayout();
|
auto horizontalLayout = new QHBoxLayout();
|
||||||
horizontalLayout->addWidget(m_pixmapLabel);
|
horizontalLayout->addWidget(m_pixmapLabel);
|
||||||
|
@@ -45,8 +45,7 @@ void StackTreeView::setModel(QAbstractItemModel *model)
|
|||||||
if (model)
|
if (model)
|
||||||
setRootIndex(model->index(0, 0, QModelIndex()));
|
setRootIndex(model->index(0, 0, QModelIndex()));
|
||||||
|
|
||||||
connect(static_cast<StackHandler*>(model), &StackHandler::stackChanged,
|
connect(static_cast<StackHandler*>(model), &StackHandler::stackChanged, this, [this] {
|
||||||
this, [this]() {
|
|
||||||
if (!m_contentsAdjusted)
|
if (!m_contentsAdjusted)
|
||||||
adjustForContents();
|
adjustForContents();
|
||||||
});
|
});
|
||||||
|
@@ -359,7 +359,7 @@ QPointer<QComboBox> ThreadsHandler::threadSwitcher()
|
|||||||
m_comboBox = new QComboBox;
|
m_comboBox = new QComboBox;
|
||||||
m_comboBox->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
m_comboBox->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
||||||
m_comboBox->setModel(this);
|
m_comboBox->setModel(this);
|
||||||
connect(m_comboBox, QOverload<int>::of(&QComboBox::activated), this, [this](int row) {
|
connect(m_comboBox, &QComboBox::activated, this, [this](int row) {
|
||||||
setData(index(row, 0), {}, BaseTreeView::ItemActivatedRole);
|
setData(index(row, 0), {}, BaseTreeView::ItemActivatedRole);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@@ -1978,7 +1978,7 @@ QMenu *WatchModel::createFormatMenu(WatchItem *item, QWidget *parent)
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
addAction(this, menu, Tr::tr("Reset All Individual Formats"), true, [this]() {
|
addAction(this, menu, Tr::tr("Reset All Individual Formats"), true, [this] {
|
||||||
theIndividualFormats.clear();
|
theIndividualFormats.clear();
|
||||||
saveFormats();
|
saveFormats();
|
||||||
m_engine->updateLocals();
|
m_engine->updateLocals();
|
||||||
@@ -2004,7 +2004,7 @@ QMenu *WatchModel::createFormatMenu(WatchItem *item, QWidget *parent)
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
addAction(this, menu, Tr::tr("Reset All Formats for Types"), true, [this]() {
|
addAction(this, menu, Tr::tr("Reset All Formats for Types"), true, [this] {
|
||||||
theTypeFormats.clear();
|
theTypeFormats.clear();
|
||||||
saveFormats();
|
saveFormats();
|
||||||
m_engine->updateLocals();
|
m_engine->updateLocals();
|
||||||
|
Reference in New Issue
Block a user