Commit 018281b8 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Rename slot for avoiding to use qOverload

parent 81301c02
Pipeline #82967 passed with stage
in 7 minutes and 59 seconds
......@@ -666,7 +666,7 @@ void MainWidget::setupActions(KActionCollection *collection)
collection->setDefaultShortcut(act, QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_3));
collection->addAction(QStringLiteral("view_mode_3columns"), act);
connect(mViewModeGroup, qOverload<QAction *>(&QActionGroup::triggered), this, qOverload<QAction *>(&MainWidget::setViewMode));
connect(mViewModeGroup, &QActionGroup::triggered, this, &MainWidget::setActivateViewMode);
KToggleAction *actTheme = mGrantleeThemeManager->actionForTheme();
if (actTheme) {
......@@ -850,7 +850,7 @@ QAbstractItemModel *MainWidget::allContactsModel()
return mAllContactsModel;
}
void MainWidget::setViewMode(QAction *action)
void MainWidget::setActivateViewMode(QAction *action)
{
setViewMode(action->data().toInt());
}
......
......@@ -96,7 +96,7 @@ private Q_SLOTS:
void itemSelectionChanged(const QModelIndex &, const QModelIndex &);
void selectFirstItem();
void setViewMode(QAction *action);
void setActivateViewMode(QAction *action);
void setQRCodeShow(bool on);
void restoreState();
......
Supports Markdown
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