diff --git a/src/plugins/autotest/projectsettingswidget.cpp b/src/plugins/autotest/projectsettingswidget.cpp index 11841f56c27..18850734c13 100644 --- a/src/plugins/autotest/projectsettingswidget.cpp +++ b/src/plugins/autotest/projectsettingswidget.cpp @@ -104,8 +104,7 @@ ProjectTestSettingsWidget::ProjectTestSettingsWidget(ProjectExplorer::Project *p connect(m_activeFrameworks, &QTreeWidget::itemChanged, this, &ProjectTestSettingsWidget::onActiveFrameworkChanged); - connect(m_runAfterBuild, QOverload::of(&QComboBox::currentIndexChanged), - this, [this](int index) { + connect(m_runAfterBuild, &QComboBox::currentIndexChanged, this, [this](int index) { m_projectSettings->setRunAfterBuild(RunAfterBuildMode(index)); }); m_syncTimer.setSingleShot(true); diff --git a/src/plugins/beautifier/configurationpanel.cpp b/src/plugins/beautifier/configurationpanel.cpp index a693d42b99d..a7cf3347293 100644 --- a/src/plugins/beautifier/configurationpanel.cpp +++ b/src/plugins/beautifier/configurationpanel.cpp @@ -40,7 +40,7 @@ ConfigurationPanel::ConfigurationPanel(QWidget *parent) : connect(ui->add, &QPushButton::clicked, this, &ConfigurationPanel::add); connect(ui->edit, &QPushButton::clicked, this, &ConfigurationPanel::edit); connect(ui->remove, &QPushButton::clicked, this, &ConfigurationPanel::remove); - connect(ui->configurations, QOverload::of(&QComboBox::currentIndexChanged), + connect(ui->configurations, &QComboBox::currentIndexChanged, this, &ConfigurationPanel::updateButtons); } diff --git a/src/plugins/cmakeprojectmanager/cmakekitinformation.cpp b/src/plugins/cmakeprojectmanager/cmakekitinformation.cpp index 788ee81b573..d8fef4c1410 100644 --- a/src/plugins/cmakeprojectmanager/cmakekitinformation.cpp +++ b/src/plugins/cmakeprojectmanager/cmakekitinformation.cpp @@ -105,7 +105,7 @@ public: updateComboBox(); refresh(); - connect(m_comboBox, QOverload::of(&QComboBox::currentIndexChanged), + connect(m_comboBox, &QComboBox::currentIndexChanged, this, &CMakeKitAspectWidget::currentCMakeToolChanged); CMakeToolManager *cmakeMgr = CMakeToolManager::instance(); diff --git a/src/plugins/cpaster/pasteselectdialog.cpp b/src/plugins/cpaster/pasteselectdialog.cpp index 55a33ad5701..acf5c980264 100644 --- a/src/plugins/cpaster/pasteselectdialog.cpp +++ b/src/plugins/cpaster/pasteselectdialog.cpp @@ -44,7 +44,7 @@ PasteSelectDialog::PasteSelectDialog(const QList &protocols, m_ui.protocolBox->addItem(protocol->name()); connect(protocol, &Protocol::listDone, this, &PasteSelectDialog::listDone); } - connect(m_ui.protocolBox, QOverload::of(&QComboBox::currentIndexChanged), + connect(m_ui.protocolBox, &QComboBox::currentIndexChanged, this, &PasteSelectDialog::protocolChanged); m_refreshButton = m_ui.buttons->addButton(tr("Refresh"), QDialogButtonBox::ActionRole); diff --git a/src/plugins/cpaster/pasteview.cpp b/src/plugins/cpaster/pasteview.cpp index 04c87cda631..61875cc2d2e 100644 --- a/src/plugins/cpaster/pasteview.cpp +++ b/src/plugins/cpaster/pasteview.cpp @@ -53,8 +53,7 @@ PasteView::PasteView(const QList &protocols, foreach (const Protocol *p, protocols) m_ui.protocolBox->addItem(p->name()); - connect(m_ui.protocolBox, QOverload::of(&QComboBox::currentIndexChanged), - this, &PasteView::protocolChanged); + connect(m_ui.protocolBox, &QComboBox::currentIndexChanged, this, &PasteView::protocolChanged); } PasteView::~PasteView() = default; diff --git a/src/plugins/designer/cpp/newclasswidget.cpp b/src/plugins/designer/cpp/newclasswidget.cpp index ab2475f12b1..ba11dc9d753 100644 --- a/src/plugins/designer/cpp/newclasswidget.cpp +++ b/src/plugins/designer/cpp/newclasswidget.cpp @@ -82,8 +82,7 @@ NewClassWidget::NewClassWidget(QWidget *parent) : this, &NewClassWidget::slotUpdateFileNames); connect(d->m_ui.classLineEdit, &QLineEdit::textEdited, this, &NewClassWidget::classNameEdited); - connect(d->m_ui.baseClassComboBox, - QOverload::of(&QComboBox::currentIndexChanged), + connect(d->m_ui.baseClassComboBox, &QComboBox::currentIndexChanged, this, &NewClassWidget::suggestClassNameFromBase); connect(d->m_ui.baseClassComboBox, &QComboBox::editTextChanged, this, &NewClassWidget::slotValidChanged); diff --git a/src/plugins/diffeditor/diffeditor.cpp b/src/plugins/diffeditor/diffeditor.cpp index 96a37853dba..90b257e3106 100644 --- a/src/plugins/diffeditor/diffeditor.cpp +++ b/src/plugins/diffeditor/diffeditor.cpp @@ -193,7 +193,7 @@ DiffEditor::DiffEditor() QSizePolicy policy = m_entriesComboBox->sizePolicy(); policy.setHorizontalPolicy(QSizePolicy::Expanding); m_entriesComboBox->setSizePolicy(policy); - connect(m_entriesComboBox, QOverload::of(&QComboBox::currentIndexChanged), + connect(m_entriesComboBox, &QComboBox::currentIndexChanged, this, &DiffEditor::setCurrentDiffFileIndex); m_toolBar->addWidget(m_entriesComboBox); @@ -222,8 +222,9 @@ DiffEditor::DiffEditor() m_viewSwitcherAction = m_toolBar->addAction(QIcon(), QString()); - connect(m_whitespaceButtonAction, &QAction::toggled, this, &DiffEditor::ignoreWhitespaceHasChanged); - connect(m_contextSpinBox, QOverload::of(&QSpinBox::valueChanged), + connect(m_whitespaceButtonAction, &QAction::toggled, + this, &DiffEditor::ignoreWhitespaceHasChanged); + connect(m_contextSpinBox, &QSpinBox::valueChanged, this, &DiffEditor::contextLineCountHasChanged); connect(m_toggleSyncAction, &QAction::toggled, this, &DiffEditor::toggleSync); connect(m_toggleDescriptionAction, &QAction::toggled, this, &DiffEditor::toggleDescription); diff --git a/src/plugins/docker/dockerdevicewidget.cpp b/src/plugins/docker/dockerdevicewidget.cpp index b2e92999eb3..0086178b2b4 100644 --- a/src/plugins/docker/dockerdevicewidget.cpp +++ b/src/plugins/docker/dockerdevicewidget.cpp @@ -209,8 +209,7 @@ DockerDeviceWidget::DockerDeviceWidget(const IDevice::Ptr &device) if (index == 1) searchDirsLineEdit->setFocus(); }; - QObject::connect(searchDirsComboBox, qOverload(&QComboBox::activated), - this, updateDirectoriesLineEdit); + QObject::connect(searchDirsComboBox, &QComboBox::activated, this, updateDirectoriesLineEdit); } void DockerDeviceWidget::updateDaemonStateTexts() diff --git a/src/plugins/help/generalsettingspage.cpp b/src/plugins/help/generalsettingspage.cpp index f6d2284a5f1..c8f5c6687dc 100644 --- a/src/plugins/help/generalsettingspage.cpp +++ b/src/plugins/help/generalsettingspage.cpp @@ -245,24 +245,23 @@ QWidget *GeneralSettingsPage::widget() updateFontStyleSelector(); updateFontFamilySelector(); - connect(m_widget->familyComboBox, &QFontComboBox::currentFontChanged, this, [this]() { + connect(m_widget->familyComboBox, &QFontComboBox::currentFontChanged, this, [this] { updateFont(); updateFontStyleSelector(); updateFontSizeSelector(); updateFont(); // changes that might have happened when updating the selectors }); - connect(m_widget->styleComboBox, QOverload::of(&QComboBox::currentIndexChanged), - this, [this]() { + connect(m_widget->styleComboBox, &QComboBox::currentIndexChanged, this, [this] { updateFont(); updateFontSizeSelector(); updateFont(); // changes that might have happened when updating the selectors }); - connect(m_widget->sizeComboBox, QOverload::of(&QComboBox::currentIndexChanged), + connect(m_widget->sizeComboBox, &QComboBox::currentIndexChanged, this, &GeneralSettingsPage::updateFont); - connect(m_widget->zoomSpinBox, QOverload::of(&QSpinBox::valueChanged), + connect(m_widget->zoomSpinBox, &QSpinBox::valueChanged, this, [this](int value) { m_fontZoom = value; }); m_homePage = LocalHelpManager::homePage(); diff --git a/src/plugins/help/helpwidget.cpp b/src/plugins/help/helpwidget.cpp index 65177c29cbe..d35a09111b5 100644 --- a/src/plugins/help/helpwidget.cpp +++ b/src/plugins/help/helpwidget.cpp @@ -371,8 +371,7 @@ HelpWidget::HelpWidget(const Core::Context &context, WidgetStyle style, QWidget layout->addWidget(m_filterComboBox); connect(&LocalHelpManager::helpEngine(), &QHelpEngine::setupFinished, this, &HelpWidget::setupFilterCombo, Qt::QueuedConnection); - connect(m_filterComboBox, QOverload::of(&QComboBox::activated), - this, &HelpWidget::filterDocumentation); + connect(m_filterComboBox, &QComboBox::activated, this, &HelpWidget::filterDocumentation); connect(LocalHelpManager::filterEngine(), &QHelpFilterEngine::filterActivated, this, &HelpWidget::currentFilterChanged); diff --git a/src/plugins/help/openpagesmanager.cpp b/src/plugins/help/openpagesmanager.cpp index 40f12e350d6..a09c37381a4 100644 --- a/src/plugins/help/openpagesmanager.cpp +++ b/src/plugins/help/openpagesmanager.cpp @@ -59,15 +59,10 @@ OpenPagesManager::OpenPagesManager(HelpWidget *helpWidget) m_comboBox = new QComboBox; m_comboBox->setModel(m_helpWidget->model()); m_comboBox->setContextMenuPolicy(Qt::CustomContextMenu); - connect(m_comboBox, - QOverload::of(&QComboBox::activated), - m_helpWidget, - &HelpWidget::setCurrentIndex); + connect(m_comboBox, &QComboBox::activated, m_helpWidget, &HelpWidget::setCurrentIndex); connect(m_helpWidget, &HelpWidget::currentIndexChanged, m_comboBox, &QComboBox::setCurrentIndex); - connect(m_comboBox, - &QWidget::customContextMenuRequested, - this, - &OpenPagesManager::openPagesContextMenu); + connect(m_comboBox, &QWidget::customContextMenuRequested, + this, &OpenPagesManager::openPagesContextMenu); m_openPagesSwitcher = new OpenPagesSwitcher(m_helpWidget->model()); connect(m_openPagesSwitcher, &OpenPagesSwitcher::closePage, this, diff --git a/src/plugins/imageviewer/exportdialog.cpp b/src/plugins/imageviewer/exportdialog.cpp index 370aae5b7b5..07929d0605a 100644 --- a/src/plugins/imageviewer/exportdialog.cpp +++ b/src/plugins/imageviewer/exportdialog.cpp @@ -92,15 +92,13 @@ ExportDialog::ExportDialog(QWidget *parent) auto sizeLayout = new QHBoxLayout; m_widthSpinBox->setMinimum(exportMinimumSize); m_widthSpinBox->setMaximum(exportMaximumSize); - connect(m_widthSpinBox, QOverload::of(&QSpinBox::valueChanged), - this, &ExportDialog::exportWidthChanged); + connect(m_widthSpinBox, &QSpinBox::valueChanged, this, &ExportDialog::exportWidthChanged); sizeLayout->addWidget(m_widthSpinBox); //: Multiplication, as in 32x32 sizeLayout->addWidget(new QLabel(Tr::tr("x"))); m_heightSpinBox->setMinimum(exportMinimumSize); m_heightSpinBox->setMaximum(exportMaximumSize); - connect(m_heightSpinBox, QOverload::of(&QSpinBox::valueChanged), - this, &ExportDialog::exportHeightChanged); + connect(m_heightSpinBox, &QSpinBox::valueChanged, this, &ExportDialog::exportHeightChanged); sizeLayout->addWidget(m_heightSpinBox); auto resetButton = new QToolButton(this); resetButton->setIcon(QIcon(":/qt-project.org/styles/commonstyle/images/refresh-32.png")); diff --git a/src/plugins/incredibuild/commandbuilderaspect.cpp b/src/plugins/incredibuild/commandbuilderaspect.cpp index 43cbd39f009..ca2213cb6e8 100644 --- a/src/plugins/incredibuild/commandbuilderaspect.cpp +++ b/src/plugins/incredibuild/commandbuilderaspect.cpp @@ -139,8 +139,7 @@ void CommandBuilderAspect::addToLayout(LayoutBuilder &builder) d->commandBuilder = new QComboBox; for (CommandBuilder *p : d->m_commandBuilders) d->commandBuilder->addItem(p->displayName()); - connect(d->commandBuilder, QOverload::of(&QComboBox::currentIndexChanged), - this, [this](int idx) { + connect(d->commandBuilder, &QComboBox::currentIndexChanged, this, [this](int idx) { if (idx >= 0 && idx < int(sizeof(d->m_commandBuilders) / sizeof(d->m_commandBuilders[0]))) d->m_activeCommandBuilder = d->m_commandBuilders[idx]; updateGui(); diff --git a/src/plugins/languageclient/languageclientoutline.cpp b/src/plugins/languageclient/languageclientoutline.cpp index 9ac086493ca..0da48f6e8ea 100644 --- a/src/plugins/languageclient/languageclientoutline.cpp +++ b/src/plugins/languageclient/languageclientoutline.cpp @@ -429,7 +429,7 @@ OutlineComboBox::OutlineComboBox(Client *client, TextEditor::BaseTextEditor *edi connect(client, &Client::documentUpdated, this, &OutlineComboBox::documentUpdated); connect(m_editorWidget, &TextEditor::TextEditorWidget::cursorPositionChanged, this, &OutlineComboBox::updateEntry); - connect(this, QOverload::of(&QComboBox::activated), this, &OutlineComboBox::activateEntry); + connect(this, &QComboBox::activated, this, &OutlineComboBox::activateEntry); connect(sortAction, &QAction::toggled, this, &OutlineComboBox::setSorted); documentUpdated(editor->textDocument()); diff --git a/src/plugins/mesonprojectmanager/settings/tools/kitaspect/toolkitaspectwidget.cpp b/src/plugins/mesonprojectmanager/settings/tools/kitaspect/toolkitaspectwidget.cpp index fb0f3e56406..d80892b20f2 100644 --- a/src/plugins/mesonprojectmanager/settings/tools/kitaspect/toolkitaspectwidget.cpp +++ b/src/plugins/mesonprojectmanager/settings/tools/kitaspect/toolkitaspectwidget.cpp @@ -48,18 +48,12 @@ ToolKitAspectWidget::ToolKitAspectWidget(ProjectExplorer::Kit *kit, m_toolsComboBox->setToolTip(ki->description()); loadTools(); - connect(MesonTools::instance(), - &MesonTools::toolAdded, - this, - &ToolKitAspectWidget::addTool); - connect(MesonTools::instance(), - &MesonTools::toolRemoved, - this, - &ToolKitAspectWidget::removeTool); - connect(m_toolsComboBox, - QOverload::of(&QComboBox::currentIndexChanged), - this, - &ToolKitAspectWidget::setCurrentToolIndex); + connect(MesonTools::instance(), &MesonTools::toolAdded, + this, &ToolKitAspectWidget::addTool); + connect(MesonTools::instance(), &MesonTools::toolRemoved, + this, &ToolKitAspectWidget::removeTool); + connect(m_toolsComboBox, &QComboBox::currentIndexChanged, + this, &ToolKitAspectWidget::setCurrentToolIndex); } ToolKitAspectWidget::~ToolKitAspectWidget() diff --git a/src/plugins/modeleditor/modeleditor.cpp b/src/plugins/modeleditor/modeleditor.cpp index 9c641ddb171..dc14946cb97 100644 --- a/src/plugins/modeleditor/modeleditor.cpp +++ b/src/plugins/modeleditor/modeleditor.cpp @@ -321,7 +321,7 @@ void ModelEditor::init() toolbarLayout->addWidget(openParentButton); d->diagramSelector = new QComboBox(d->toolbar); - connect(d->diagramSelector, QOverload::of(&QComboBox::activated), + connect(d->diagramSelector, &QComboBox::activated, this, &ModelEditor::onDiagramSelectorSelected); toolbarLayout->addWidget(d->diagramSelector, 1); toolbarLayout->addStretch(1); diff --git a/src/plugins/nim/project/nimcompilerbuildstep.cpp b/src/plugins/nim/project/nimcompilerbuildstep.cpp index a81ebfb7410..8560ab0cff1 100644 --- a/src/plugins/nim/project/nimcompilerbuildstep.cpp +++ b/src/plugins/nim/project/nimcompilerbuildstep.cpp @@ -120,8 +120,7 @@ QWidget *NimCompilerBuildStep::createConfigWidget() connect(project(), &Project::fileListChanged, this, updateUi); - connect(targetComboBox, QOverload::of(&QComboBox::activated), - this, [this, targetComboBox, updateUi] { + connect(targetComboBox, &QComboBox::activated, this, [this, targetComboBox, updateUi] { const QVariant data = targetComboBox->currentData(); m_targetNimFile = FilePath::fromString(data.toString()); updateUi(); @@ -133,8 +132,7 @@ QWidget *NimCompilerBuildStep::createConfigWidget() updateUi(); }); - connect(defaultArgumentsComboBox, QOverload::of(&QComboBox::activated), - this, [this, updateUi](int index) { + connect(defaultArgumentsComboBox, &QComboBox::activated, this, [this, updateUi](int index) { m_defaultOptions = static_cast(index); updateUi(); }); diff --git a/src/plugins/perfprofiler/perfdatareader.cpp b/src/plugins/perfprofiler/perfdatareader.cpp index 479ebe46b20..02726a8d3b1 100644 --- a/src/plugins/perfprofiler/perfdatareader.cpp +++ b/src/plugins/perfprofiler/perfdatareader.cpp @@ -69,8 +69,7 @@ PerfDataReader::PerfDataReader(QObject *parent) : m_remoteProcessStart(std::numeric_limits::max()), m_lastRemoteTimestamp(0) { - connect(&m_input, QOverload::of(&QProcess::finished), - this, [this](int exitCode) { + connect(&m_input, &QProcess::finished, this, [this](int exitCode) { emit processFinished(); // process any remaining input before signaling finished() readFromDevice(); diff --git a/src/plugins/qnx/qnxsettingspage.cpp b/src/plugins/qnx/qnxsettingspage.cpp index 897b5a74da2..90608d98f0d 100644 --- a/src/plugins/qnx/qnxsettingspage.cpp +++ b/src/plugins/qnx/qnxsettingspage.cpp @@ -165,7 +165,7 @@ QnxSettingsWidget::QnxSettingsWidget() : this, &QnxSettingsWidget::addConfiguration); connect(m_removeButton, &QAbstractButton::clicked, this, &QnxSettingsWidget::removeConfiguration); - connect(m_configsCombo, QOverload::of(&QComboBox::currentIndexChanged), + connect(m_configsCombo, &QComboBox::currentIndexChanged, this, &QnxSettingsWidget::updateInformation); connect(m_generateKitsCheckBox, &QAbstractButton::toggled, this, &QnxSettingsWidget::generateKits); diff --git a/src/plugins/scxmleditor/common/colorsettings.cpp b/src/plugins/scxmleditor/common/colorsettings.cpp index 49bbb395efc..6433b3c99f5 100644 --- a/src/plugins/scxmleditor/common/colorsettings.cpp +++ b/src/plugins/scxmleditor/common/colorsettings.cpp @@ -39,9 +39,10 @@ ColorSettings::ColorSettings(QWidget *parent) m_ui.setupUi(this); m_ui.m_colorThemeView->setEnabled(false); - connect(m_ui.m_comboColorThemes, QOverload::of(&QComboBox::currentIndexChanged), + connect(m_ui.m_comboColorThemes, &QComboBox::currentIndexChanged, this, &ColorSettings::selectTheme); - connect(m_ui.m_colorThemeView, &ColorThemeView::colorChanged, this, &ColorSettings::updateCurrentColors); + connect(m_ui.m_colorThemeView, &ColorThemeView::colorChanged, + this, &ColorSettings::updateCurrentColors); connect(m_ui.m_addColorTheme, &QToolButton::clicked, this, &ColorSettings::createTheme); connect(m_ui.m_removeColorTheme, &QToolButton::clicked, this, &ColorSettings::removeTheme); diff --git a/src/plugins/serialterminal/serialoutputpane.cpp b/src/plugins/serialterminal/serialoutputpane.cpp index 3d23606fa4c..f04769924eb 100644 --- a/src/plugins/serialterminal/serialoutputpane.cpp +++ b/src/plugins/serialterminal/serialoutputpane.cpp @@ -169,7 +169,7 @@ SerialOutputPane::SerialOutputPane(Settings &settings) : updateLineEndingsComboBox(); inputLayout->addWidget(m_lineEndingsSelection); - connect(m_lineEndingsSelection, QOverload::of(&QComboBox::currentIndexChanged), + connect(m_lineEndingsSelection, &QComboBox::currentIndexChanged, this, &SerialOutputPane::defaultLineEndingChanged); layout->addLayout(inputLayout); @@ -383,7 +383,7 @@ void SerialOutputPane::createToolButtons() m_portsSelection->setModel(m_devicesModel); updatePortsList(); connect(m_portsSelection, &ComboBox::opened, this, &SerialOutputPane::updatePortsList); - connect(m_portsSelection, QOverload::of(&ComboBox::currentIndexChanged), + connect(m_portsSelection, &ComboBox::currentIndexChanged, this, &SerialOutputPane::activePortNameChanged); // TODO: the ports are not updated with the box opened (if the user wait for it) -> add a timer? @@ -392,7 +392,7 @@ void SerialOutputPane::createToolButtons() m_baudRateSelection = new ComboBox; m_baudRateSelection->setSizeAdjustPolicy(QComboBox::AdjustToContents); m_baudRateSelection->addItems(m_devicesModel->baudRates()); - connect(m_baudRateSelection, QOverload::of(&ComboBox::currentIndexChanged), + connect(m_baudRateSelection, &ComboBox::currentIndexChanged, this, &SerialOutputPane::activeBaudRateChanged); if (m_settings.baudRate > 0) diff --git a/src/plugins/todo/todooutputpane.cpp b/src/plugins/todo/todooutputpane.cpp index d72f974e357..1c584855b5a 100644 --- a/src/plugins/todo/todooutputpane.cpp +++ b/src/plugins/todo/todooutputpane.cpp @@ -268,7 +268,7 @@ void TodoOutputPane::createScopeButtons() m_scopeButtons->addButton(m_wholeProjectButton); m_scopeButtons->addButton(m_currentFileButton); m_scopeButtons->addButton(m_subProjectButton); - connect(m_scopeButtons, QOverload::of(&QButtonGroup::buttonClicked), + connect(m_scopeButtons, &QButtonGroup::buttonClicked, this, &TodoOutputPane::scopeButtonClicked); m_spacer = new QWidget; diff --git a/src/plugins/updateinfo/settingspage.cpp b/src/plugins/updateinfo/settingspage.cpp index 6ef305e39f9..7cc9a72a439 100644 --- a/src/plugins/updateinfo/settingspage.cpp +++ b/src/plugins/updateinfo/settingspage.cpp @@ -128,8 +128,7 @@ public: connect(m_checkNowButton, &QPushButton::clicked, m_plugin, &UpdateInfoPlugin::startCheckForUpdates); - connect(m_checkIntervalComboBox, - QOverload::of(&QComboBox::currentIndexChanged), + connect(m_checkIntervalComboBox, &QComboBox::currentIndexChanged, this, &UpdateInfoSettingsPageWidget::updateNextCheckDate); connect(m_plugin, &UpdateInfoPlugin::lastCheckDateChanged, this, &UpdateInfoSettingsPageWidget::updateLastCheckDate); diff --git a/src/shared/help/bookmarkmanager.cpp b/src/shared/help/bookmarkmanager.cpp index b73ece93c8d..065143733a0 100644 --- a/src/shared/help/bookmarkmanager.cpp +++ b/src/shared/help/bookmarkmanager.cpp @@ -95,7 +95,7 @@ BookmarkDialog::BookmarkDialog(BookmarkManager *manager, const QString &title, &QStandardItemModel::itemChanged, this, &BookmarkDialog::itemChanged); - connect(ui.bookmarkFolders, QOverload::of(&QComboBox::currentIndexChanged), + connect(ui.bookmarkFolders, &QComboBox::currentIndexChanged, this, &BookmarkDialog::selectBookmarkFolder); connect(ui.treeView, &TreeView::customContextMenuRequested, diff --git a/src/tools/qtcreatorcrashhandler/backtracecollector.cpp b/src/tools/qtcreatorcrashhandler/backtracecollector.cpp index 3f77d4ac98e..5ee434345f3 100644 --- a/src/tools/qtcreatorcrashhandler/backtracecollector.cpp +++ b/src/tools/qtcreatorcrashhandler/backtracecollector.cpp @@ -49,7 +49,7 @@ public: BacktraceCollector::BacktraceCollector(QObject *parent) : QObject(parent), d(new BacktraceCollectorPrivate) { - connect(&d->debugger, QOverload::of(&QProcess::finished), + connect(&d->debugger, &QProcess::finished, this, &BacktraceCollector::onDebuggerFinished); connect(&d->debugger, &QProcess::errorOccurred, this, &BacktraceCollector::onDebuggerError);