Drop Qt5: Various plugins: Get rid of QOverload

Change-Id: I4913044f8897fd3449dbb537e4af6785eb3ad447
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2022-07-19 23:43:58 +02:00
parent ae4db886f3
commit e32ebe2146
25 changed files with 44 additions and 66 deletions

View File

@@ -104,8 +104,7 @@ ProjectTestSettingsWidget::ProjectTestSettingsWidget(ProjectExplorer::Project *p
connect(m_activeFrameworks, &QTreeWidget::itemChanged, connect(m_activeFrameworks, &QTreeWidget::itemChanged,
this, &ProjectTestSettingsWidget::onActiveFrameworkChanged); this, &ProjectTestSettingsWidget::onActiveFrameworkChanged);
connect(m_runAfterBuild, QOverload<int>::of(&QComboBox::currentIndexChanged), connect(m_runAfterBuild, &QComboBox::currentIndexChanged, this, [this](int index) {
this, [this](int index) {
m_projectSettings->setRunAfterBuild(RunAfterBuildMode(index)); m_projectSettings->setRunAfterBuild(RunAfterBuildMode(index));
}); });
m_syncTimer.setSingleShot(true); m_syncTimer.setSingleShot(true);

View File

@@ -40,7 +40,7 @@ ConfigurationPanel::ConfigurationPanel(QWidget *parent) :
connect(ui->add, &QPushButton::clicked, this, &ConfigurationPanel::add); connect(ui->add, &QPushButton::clicked, this, &ConfigurationPanel::add);
connect(ui->edit, &QPushButton::clicked, this, &ConfigurationPanel::edit); connect(ui->edit, &QPushButton::clicked, this, &ConfigurationPanel::edit);
connect(ui->remove, &QPushButton::clicked, this, &ConfigurationPanel::remove); connect(ui->remove, &QPushButton::clicked, this, &ConfigurationPanel::remove);
connect(ui->configurations, QOverload<int>::of(&QComboBox::currentIndexChanged), connect(ui->configurations, &QComboBox::currentIndexChanged,
this, &ConfigurationPanel::updateButtons); this, &ConfigurationPanel::updateButtons);
} }

View File

@@ -105,7 +105,7 @@ public:
updateComboBox(); updateComboBox();
refresh(); refresh();
connect(m_comboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), connect(m_comboBox, &QComboBox::currentIndexChanged,
this, &CMakeKitAspectWidget::currentCMakeToolChanged); this, &CMakeKitAspectWidget::currentCMakeToolChanged);
CMakeToolManager *cmakeMgr = CMakeToolManager::instance(); CMakeToolManager *cmakeMgr = CMakeToolManager::instance();

View File

@@ -44,7 +44,7 @@ PasteSelectDialog::PasteSelectDialog(const QList<Protocol*> &protocols,
m_ui.protocolBox->addItem(protocol->name()); m_ui.protocolBox->addItem(protocol->name());
connect(protocol, &Protocol::listDone, this, &PasteSelectDialog::listDone); connect(protocol, &Protocol::listDone, this, &PasteSelectDialog::listDone);
} }
connect(m_ui.protocolBox, QOverload<int>::of(&QComboBox::currentIndexChanged), connect(m_ui.protocolBox, &QComboBox::currentIndexChanged,
this, &PasteSelectDialog::protocolChanged); this, &PasteSelectDialog::protocolChanged);
m_refreshButton = m_ui.buttons->addButton(tr("Refresh"), QDialogButtonBox::ActionRole); m_refreshButton = m_ui.buttons->addButton(tr("Refresh"), QDialogButtonBox::ActionRole);

View File

@@ -53,8 +53,7 @@ PasteView::PasteView(const QList<Protocol *> &protocols,
foreach (const Protocol *p, protocols) foreach (const Protocol *p, protocols)
m_ui.protocolBox->addItem(p->name()); m_ui.protocolBox->addItem(p->name());
connect(m_ui.protocolBox, QOverload<int>::of(&QComboBox::currentIndexChanged), connect(m_ui.protocolBox, &QComboBox::currentIndexChanged, this, &PasteView::protocolChanged);
this, &PasteView::protocolChanged);
} }
PasteView::~PasteView() = default; PasteView::~PasteView() = default;

View File

@@ -82,8 +82,7 @@ NewClassWidget::NewClassWidget(QWidget *parent) :
this, &NewClassWidget::slotUpdateFileNames); this, &NewClassWidget::slotUpdateFileNames);
connect(d->m_ui.classLineEdit, &QLineEdit::textEdited, connect(d->m_ui.classLineEdit, &QLineEdit::textEdited,
this, &NewClassWidget::classNameEdited); this, &NewClassWidget::classNameEdited);
connect(d->m_ui.baseClassComboBox, connect(d->m_ui.baseClassComboBox, &QComboBox::currentIndexChanged,
QOverload<int>::of(&QComboBox::currentIndexChanged),
this, &NewClassWidget::suggestClassNameFromBase); this, &NewClassWidget::suggestClassNameFromBase);
connect(d->m_ui.baseClassComboBox, &QComboBox::editTextChanged, connect(d->m_ui.baseClassComboBox, &QComboBox::editTextChanged,
this, &NewClassWidget::slotValidChanged); this, &NewClassWidget::slotValidChanged);

View File

@@ -193,7 +193,7 @@ DiffEditor::DiffEditor()
QSizePolicy policy = m_entriesComboBox->sizePolicy(); QSizePolicy policy = m_entriesComboBox->sizePolicy();
policy.setHorizontalPolicy(QSizePolicy::Expanding); policy.setHorizontalPolicy(QSizePolicy::Expanding);
m_entriesComboBox->setSizePolicy(policy); m_entriesComboBox->setSizePolicy(policy);
connect(m_entriesComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), connect(m_entriesComboBox, &QComboBox::currentIndexChanged,
this, &DiffEditor::setCurrentDiffFileIndex); this, &DiffEditor::setCurrentDiffFileIndex);
m_toolBar->addWidget(m_entriesComboBox); m_toolBar->addWidget(m_entriesComboBox);
@@ -222,8 +222,9 @@ DiffEditor::DiffEditor()
m_viewSwitcherAction = m_toolBar->addAction(QIcon(), QString()); m_viewSwitcherAction = m_toolBar->addAction(QIcon(), QString());
connect(m_whitespaceButtonAction, &QAction::toggled, this, &DiffEditor::ignoreWhitespaceHasChanged); connect(m_whitespaceButtonAction, &QAction::toggled,
connect(m_contextSpinBox, QOverload<int>::of(&QSpinBox::valueChanged), this, &DiffEditor::ignoreWhitespaceHasChanged);
connect(m_contextSpinBox, &QSpinBox::valueChanged,
this, &DiffEditor::contextLineCountHasChanged); this, &DiffEditor::contextLineCountHasChanged);
connect(m_toggleSyncAction, &QAction::toggled, this, &DiffEditor::toggleSync); connect(m_toggleSyncAction, &QAction::toggled, this, &DiffEditor::toggleSync);
connect(m_toggleDescriptionAction, &QAction::toggled, this, &DiffEditor::toggleDescription); connect(m_toggleDescriptionAction, &QAction::toggled, this, &DiffEditor::toggleDescription);

View File

@@ -209,8 +209,7 @@ DockerDeviceWidget::DockerDeviceWidget(const IDevice::Ptr &device)
if (index == 1) if (index == 1)
searchDirsLineEdit->setFocus(); searchDirsLineEdit->setFocus();
}; };
QObject::connect(searchDirsComboBox, qOverload<int>(&QComboBox::activated), QObject::connect(searchDirsComboBox, &QComboBox::activated, this, updateDirectoriesLineEdit);
this, updateDirectoriesLineEdit);
} }
void DockerDeviceWidget::updateDaemonStateTexts() void DockerDeviceWidget::updateDaemonStateTexts()

View File

@@ -245,24 +245,23 @@ QWidget *GeneralSettingsPage::widget()
updateFontStyleSelector(); updateFontStyleSelector();
updateFontFamilySelector(); updateFontFamilySelector();
connect(m_widget->familyComboBox, &QFontComboBox::currentFontChanged, this, [this]() { connect(m_widget->familyComboBox, &QFontComboBox::currentFontChanged, this, [this] {
updateFont(); updateFont();
updateFontStyleSelector(); updateFontStyleSelector();
updateFontSizeSelector(); updateFontSizeSelector();
updateFont(); // changes that might have happened when updating the selectors updateFont(); // changes that might have happened when updating the selectors
}); });
connect(m_widget->styleComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), connect(m_widget->styleComboBox, &QComboBox::currentIndexChanged, this, [this] {
this, [this]() {
updateFont(); updateFont();
updateFontSizeSelector(); updateFontSizeSelector();
updateFont(); // changes that might have happened when updating the selectors updateFont(); // changes that might have happened when updating the selectors
}); });
connect(m_widget->sizeComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), connect(m_widget->sizeComboBox, &QComboBox::currentIndexChanged,
this, &GeneralSettingsPage::updateFont); this, &GeneralSettingsPage::updateFont);
connect(m_widget->zoomSpinBox, QOverload<int>::of(&QSpinBox::valueChanged), connect(m_widget->zoomSpinBox, &QSpinBox::valueChanged,
this, [this](int value) { m_fontZoom = value; }); this, [this](int value) { m_fontZoom = value; });
m_homePage = LocalHelpManager::homePage(); m_homePage = LocalHelpManager::homePage();

View File

@@ -371,8 +371,7 @@ HelpWidget::HelpWidget(const Core::Context &context, WidgetStyle style, QWidget
layout->addWidget(m_filterComboBox); layout->addWidget(m_filterComboBox);
connect(&LocalHelpManager::helpEngine(), &QHelpEngine::setupFinished, connect(&LocalHelpManager::helpEngine(), &QHelpEngine::setupFinished,
this, &HelpWidget::setupFilterCombo, Qt::QueuedConnection); this, &HelpWidget::setupFilterCombo, Qt::QueuedConnection);
connect(m_filterComboBox, QOverload<int>::of(&QComboBox::activated), connect(m_filterComboBox, &QComboBox::activated, this, &HelpWidget::filterDocumentation);
this, &HelpWidget::filterDocumentation);
connect(LocalHelpManager::filterEngine(), &QHelpFilterEngine::filterActivated, connect(LocalHelpManager::filterEngine(), &QHelpFilterEngine::filterActivated,
this, &HelpWidget::currentFilterChanged); this, &HelpWidget::currentFilterChanged);

View File

@@ -59,15 +59,10 @@ OpenPagesManager::OpenPagesManager(HelpWidget *helpWidget)
m_comboBox = new QComboBox; m_comboBox = new QComboBox;
m_comboBox->setModel(m_helpWidget->model()); m_comboBox->setModel(m_helpWidget->model());
m_comboBox->setContextMenuPolicy(Qt::CustomContextMenu); m_comboBox->setContextMenuPolicy(Qt::CustomContextMenu);
connect(m_comboBox, connect(m_comboBox, &QComboBox::activated, m_helpWidget, &HelpWidget::setCurrentIndex);
QOverload<int>::of(&QComboBox::activated),
m_helpWidget,
&HelpWidget::setCurrentIndex);
connect(m_helpWidget, &HelpWidget::currentIndexChanged, m_comboBox, &QComboBox::setCurrentIndex); connect(m_helpWidget, &HelpWidget::currentIndexChanged, m_comboBox, &QComboBox::setCurrentIndex);
connect(m_comboBox, connect(m_comboBox, &QWidget::customContextMenuRequested,
&QWidget::customContextMenuRequested, this, &OpenPagesManager::openPagesContextMenu);
this,
&OpenPagesManager::openPagesContextMenu);
m_openPagesSwitcher = new OpenPagesSwitcher(m_helpWidget->model()); m_openPagesSwitcher = new OpenPagesSwitcher(m_helpWidget->model());
connect(m_openPagesSwitcher, &OpenPagesSwitcher::closePage, this, connect(m_openPagesSwitcher, &OpenPagesSwitcher::closePage, this,

View File

@@ -92,15 +92,13 @@ ExportDialog::ExportDialog(QWidget *parent)
auto sizeLayout = new QHBoxLayout; auto sizeLayout = new QHBoxLayout;
m_widthSpinBox->setMinimum(exportMinimumSize); m_widthSpinBox->setMinimum(exportMinimumSize);
m_widthSpinBox->setMaximum(exportMaximumSize); m_widthSpinBox->setMaximum(exportMaximumSize);
connect(m_widthSpinBox, QOverload<int>::of(&QSpinBox::valueChanged), connect(m_widthSpinBox, &QSpinBox::valueChanged, this, &ExportDialog::exportWidthChanged);
this, &ExportDialog::exportWidthChanged);
sizeLayout->addWidget(m_widthSpinBox); sizeLayout->addWidget(m_widthSpinBox);
//: Multiplication, as in 32x32 //: Multiplication, as in 32x32
sizeLayout->addWidget(new QLabel(Tr::tr("x"))); sizeLayout->addWidget(new QLabel(Tr::tr("x")));
m_heightSpinBox->setMinimum(exportMinimumSize); m_heightSpinBox->setMinimum(exportMinimumSize);
m_heightSpinBox->setMaximum(exportMaximumSize); m_heightSpinBox->setMaximum(exportMaximumSize);
connect(m_heightSpinBox, QOverload<int>::of(&QSpinBox::valueChanged), connect(m_heightSpinBox, &QSpinBox::valueChanged, this, &ExportDialog::exportHeightChanged);
this, &ExportDialog::exportHeightChanged);
sizeLayout->addWidget(m_heightSpinBox); sizeLayout->addWidget(m_heightSpinBox);
auto resetButton = new QToolButton(this); auto resetButton = new QToolButton(this);
resetButton->setIcon(QIcon(":/qt-project.org/styles/commonstyle/images/refresh-32.png")); resetButton->setIcon(QIcon(":/qt-project.org/styles/commonstyle/images/refresh-32.png"));

View File

@@ -139,8 +139,7 @@ void CommandBuilderAspect::addToLayout(LayoutBuilder &builder)
d->commandBuilder = new QComboBox; d->commandBuilder = new QComboBox;
for (CommandBuilder *p : d->m_commandBuilders) for (CommandBuilder *p : d->m_commandBuilders)
d->commandBuilder->addItem(p->displayName()); d->commandBuilder->addItem(p->displayName());
connect(d->commandBuilder, QOverload<int>::of(&QComboBox::currentIndexChanged), connect(d->commandBuilder, &QComboBox::currentIndexChanged, this, [this](int idx) {
this, [this](int idx) {
if (idx >= 0 && idx < int(sizeof(d->m_commandBuilders) / sizeof(d->m_commandBuilders[0]))) if (idx >= 0 && idx < int(sizeof(d->m_commandBuilders) / sizeof(d->m_commandBuilders[0])))
d->m_activeCommandBuilder = d->m_commandBuilders[idx]; d->m_activeCommandBuilder = d->m_commandBuilders[idx];
updateGui(); updateGui();

View File

@@ -429,7 +429,7 @@ OutlineComboBox::OutlineComboBox(Client *client, TextEditor::BaseTextEditor *edi
connect(client, &Client::documentUpdated, this, &OutlineComboBox::documentUpdated); connect(client, &Client::documentUpdated, this, &OutlineComboBox::documentUpdated);
connect(m_editorWidget, &TextEditor::TextEditorWidget::cursorPositionChanged, connect(m_editorWidget, &TextEditor::TextEditorWidget::cursorPositionChanged,
this, &OutlineComboBox::updateEntry); this, &OutlineComboBox::updateEntry);
connect(this, QOverload<int>::of(&QComboBox::activated), this, &OutlineComboBox::activateEntry); connect(this, &QComboBox::activated, this, &OutlineComboBox::activateEntry);
connect(sortAction, &QAction::toggled, this, &OutlineComboBox::setSorted); connect(sortAction, &QAction::toggled, this, &OutlineComboBox::setSorted);
documentUpdated(editor->textDocument()); documentUpdated(editor->textDocument());

View File

@@ -48,18 +48,12 @@ ToolKitAspectWidget::ToolKitAspectWidget(ProjectExplorer::Kit *kit,
m_toolsComboBox->setToolTip(ki->description()); m_toolsComboBox->setToolTip(ki->description());
loadTools(); loadTools();
connect(MesonTools::instance(), connect(MesonTools::instance(), &MesonTools::toolAdded,
&MesonTools::toolAdded, this, &ToolKitAspectWidget::addTool);
this, connect(MesonTools::instance(), &MesonTools::toolRemoved,
&ToolKitAspectWidget::addTool); this, &ToolKitAspectWidget::removeTool);
connect(MesonTools::instance(), connect(m_toolsComboBox, &QComboBox::currentIndexChanged,
&MesonTools::toolRemoved, this, &ToolKitAspectWidget::setCurrentToolIndex);
this,
&ToolKitAspectWidget::removeTool);
connect(m_toolsComboBox,
QOverload<int>::of(&QComboBox::currentIndexChanged),
this,
&ToolKitAspectWidget::setCurrentToolIndex);
} }
ToolKitAspectWidget::~ToolKitAspectWidget() ToolKitAspectWidget::~ToolKitAspectWidget()

View File

@@ -321,7 +321,7 @@ void ModelEditor::init()
toolbarLayout->addWidget(openParentButton); toolbarLayout->addWidget(openParentButton);
d->diagramSelector = new QComboBox(d->toolbar); d->diagramSelector = new QComboBox(d->toolbar);
connect(d->diagramSelector, QOverload<int>::of(&QComboBox::activated), connect(d->diagramSelector, &QComboBox::activated,
this, &ModelEditor::onDiagramSelectorSelected); this, &ModelEditor::onDiagramSelectorSelected);
toolbarLayout->addWidget(d->diagramSelector, 1); toolbarLayout->addWidget(d->diagramSelector, 1);
toolbarLayout->addStretch(1); toolbarLayout->addStretch(1);

View File

@@ -120,8 +120,7 @@ QWidget *NimCompilerBuildStep::createConfigWidget()
connect(project(), &Project::fileListChanged, this, updateUi); connect(project(), &Project::fileListChanged, this, updateUi);
connect(targetComboBox, QOverload<int>::of(&QComboBox::activated), connect(targetComboBox, &QComboBox::activated, this, [this, targetComboBox, updateUi] {
this, [this, targetComboBox, updateUi] {
const QVariant data = targetComboBox->currentData(); const QVariant data = targetComboBox->currentData();
m_targetNimFile = FilePath::fromString(data.toString()); m_targetNimFile = FilePath::fromString(data.toString());
updateUi(); updateUi();
@@ -133,8 +132,7 @@ QWidget *NimCompilerBuildStep::createConfigWidget()
updateUi(); updateUi();
}); });
connect(defaultArgumentsComboBox, QOverload<int>::of(&QComboBox::activated), connect(defaultArgumentsComboBox, &QComboBox::activated, this, [this, updateUi](int index) {
this, [this, updateUi](int index) {
m_defaultOptions = static_cast<DefaultBuildOptions>(index); m_defaultOptions = static_cast<DefaultBuildOptions>(index);
updateUi(); updateUi();
}); });

View File

@@ -69,8 +69,7 @@ PerfDataReader::PerfDataReader(QObject *parent) :
m_remoteProcessStart(std::numeric_limits<qint64>::max()), m_remoteProcessStart(std::numeric_limits<qint64>::max()),
m_lastRemoteTimestamp(0) m_lastRemoteTimestamp(0)
{ {
connect(&m_input, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished), connect(&m_input, &QProcess::finished, this, [this](int exitCode) {
this, [this](int exitCode) {
emit processFinished(); emit processFinished();
// process any remaining input before signaling finished() // process any remaining input before signaling finished()
readFromDevice(); readFromDevice();

View File

@@ -165,7 +165,7 @@ QnxSettingsWidget::QnxSettingsWidget() :
this, &QnxSettingsWidget::addConfiguration); this, &QnxSettingsWidget::addConfiguration);
connect(m_removeButton, &QAbstractButton::clicked, connect(m_removeButton, &QAbstractButton::clicked,
this, &QnxSettingsWidget::removeConfiguration); this, &QnxSettingsWidget::removeConfiguration);
connect(m_configsCombo, QOverload<int>::of(&QComboBox::currentIndexChanged), connect(m_configsCombo, &QComboBox::currentIndexChanged,
this, &QnxSettingsWidget::updateInformation); this, &QnxSettingsWidget::updateInformation);
connect(m_generateKitsCheckBox, &QAbstractButton::toggled, connect(m_generateKitsCheckBox, &QAbstractButton::toggled,
this, &QnxSettingsWidget::generateKits); this, &QnxSettingsWidget::generateKits);

View File

@@ -39,9 +39,10 @@ ColorSettings::ColorSettings(QWidget *parent)
m_ui.setupUi(this); m_ui.setupUi(this);
m_ui.m_colorThemeView->setEnabled(false); m_ui.m_colorThemeView->setEnabled(false);
connect(m_ui.m_comboColorThemes, QOverload<int>::of(&QComboBox::currentIndexChanged), connect(m_ui.m_comboColorThemes, &QComboBox::currentIndexChanged,
this, &ColorSettings::selectTheme); 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_addColorTheme, &QToolButton::clicked, this, &ColorSettings::createTheme);
connect(m_ui.m_removeColorTheme, &QToolButton::clicked, this, &ColorSettings::removeTheme); connect(m_ui.m_removeColorTheme, &QToolButton::clicked, this, &ColorSettings::removeTheme);

View File

@@ -169,7 +169,7 @@ SerialOutputPane::SerialOutputPane(Settings &settings) :
updateLineEndingsComboBox(); updateLineEndingsComboBox();
inputLayout->addWidget(m_lineEndingsSelection); inputLayout->addWidget(m_lineEndingsSelection);
connect(m_lineEndingsSelection, QOverload<int>::of(&QComboBox::currentIndexChanged), connect(m_lineEndingsSelection, &QComboBox::currentIndexChanged,
this, &SerialOutputPane::defaultLineEndingChanged); this, &SerialOutputPane::defaultLineEndingChanged);
layout->addLayout(inputLayout); layout->addLayout(inputLayout);
@@ -383,7 +383,7 @@ void SerialOutputPane::createToolButtons()
m_portsSelection->setModel(m_devicesModel); m_portsSelection->setModel(m_devicesModel);
updatePortsList(); updatePortsList();
connect(m_portsSelection, &ComboBox::opened, this, &SerialOutputPane::updatePortsList); connect(m_portsSelection, &ComboBox::opened, this, &SerialOutputPane::updatePortsList);
connect(m_portsSelection, QOverload<int>::of(&ComboBox::currentIndexChanged), connect(m_portsSelection, &ComboBox::currentIndexChanged,
this, &SerialOutputPane::activePortNameChanged); this, &SerialOutputPane::activePortNameChanged);
// TODO: the ports are not updated with the box opened (if the user wait for it) -> add a timer? // 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 = new ComboBox;
m_baudRateSelection->setSizeAdjustPolicy(QComboBox::AdjustToContents); m_baudRateSelection->setSizeAdjustPolicy(QComboBox::AdjustToContents);
m_baudRateSelection->addItems(m_devicesModel->baudRates()); m_baudRateSelection->addItems(m_devicesModel->baudRates());
connect(m_baudRateSelection, QOverload<int>::of(&ComboBox::currentIndexChanged), connect(m_baudRateSelection, &ComboBox::currentIndexChanged,
this, &SerialOutputPane::activeBaudRateChanged); this, &SerialOutputPane::activeBaudRateChanged);
if (m_settings.baudRate > 0) if (m_settings.baudRate > 0)

View File

@@ -268,7 +268,7 @@ void TodoOutputPane::createScopeButtons()
m_scopeButtons->addButton(m_wholeProjectButton); m_scopeButtons->addButton(m_wholeProjectButton);
m_scopeButtons->addButton(m_currentFileButton); m_scopeButtons->addButton(m_currentFileButton);
m_scopeButtons->addButton(m_subProjectButton); m_scopeButtons->addButton(m_subProjectButton);
connect(m_scopeButtons, QOverload<QAbstractButton *>::of(&QButtonGroup::buttonClicked), connect(m_scopeButtons, &QButtonGroup::buttonClicked,
this, &TodoOutputPane::scopeButtonClicked); this, &TodoOutputPane::scopeButtonClicked);
m_spacer = new QWidget; m_spacer = new QWidget;

View File

@@ -128,8 +128,7 @@ public:
connect(m_checkNowButton, &QPushButton::clicked, connect(m_checkNowButton, &QPushButton::clicked,
m_plugin, &UpdateInfoPlugin::startCheckForUpdates); m_plugin, &UpdateInfoPlugin::startCheckForUpdates);
connect(m_checkIntervalComboBox, connect(m_checkIntervalComboBox, &QComboBox::currentIndexChanged,
QOverload<int>::of(&QComboBox::currentIndexChanged),
this, &UpdateInfoSettingsPageWidget::updateNextCheckDate); this, &UpdateInfoSettingsPageWidget::updateNextCheckDate);
connect(m_plugin, &UpdateInfoPlugin::lastCheckDateChanged, connect(m_plugin, &UpdateInfoPlugin::lastCheckDateChanged,
this, &UpdateInfoSettingsPageWidget::updateLastCheckDate); this, &UpdateInfoSettingsPageWidget::updateLastCheckDate);

View File

@@ -95,7 +95,7 @@ BookmarkDialog::BookmarkDialog(BookmarkManager *manager, const QString &title,
&QStandardItemModel::itemChanged, &QStandardItemModel::itemChanged,
this, &BookmarkDialog::itemChanged); this, &BookmarkDialog::itemChanged);
connect(ui.bookmarkFolders, QOverload<int>::of(&QComboBox::currentIndexChanged), connect(ui.bookmarkFolders, &QComboBox::currentIndexChanged,
this, &BookmarkDialog::selectBookmarkFolder); this, &BookmarkDialog::selectBookmarkFolder);
connect(ui.treeView, &TreeView::customContextMenuRequested, connect(ui.treeView, &TreeView::customContextMenuRequested,

View File

@@ -49,7 +49,7 @@ public:
BacktraceCollector::BacktraceCollector(QObject *parent) : BacktraceCollector::BacktraceCollector(QObject *parent) :
QObject(parent), d(new BacktraceCollectorPrivate) QObject(parent), d(new BacktraceCollectorPrivate)
{ {
connect(&d->debugger, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished), connect(&d->debugger, &QProcess::finished,
this, &BacktraceCollector::onDebuggerFinished); this, &BacktraceCollector::onDebuggerFinished);
connect(&d->debugger, &QProcess::errorOccurred, connect(&d->debugger, &QProcess::errorOccurred,
this, &BacktraceCollector::onDebuggerError); this, &BacktraceCollector::onDebuggerError);