summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-12-19 07:27:23 +0100
committerMontel Laurent <[email protected]>2017-12-19 07:27:23 +0100
commite4cc6da2fdbce40d77437f84584e3ad91f738e17 (patch)
tree435a2fd1668df54942c52e1387f9eeb045ababc3
parentf47b0024382a943c2632146bf3b88ce6a9b64e83 (diff)
Port to new connect api
-rw-r--r--messagelist/src/pane.cpp10
-rw-r--r--messagelist/src/pane.h3
2 files changed, 5 insertions, 8 deletions
diff --git a/messagelist/src/pane.cpp b/messagelist/src/pane.cpp
index 11f2bfe..3a675f5 100644
--- a/messagelist/src/pane.cpp
+++ b/messagelist/src/pane.cpp
@@ -251,29 +251,29 @@ void Pane::setXmlGuiClient(KXMLGUIClient *xmlGuiClient)
d->mCloseTabAction = new QAction(i18n("Close Tab"), this);
d->mXmlGuiClient->actionCollection()->addAction(QStringLiteral("close_current_tab"), d->mCloseTabAction);
d->mXmlGuiClient->actionCollection()->setDefaultShortcuts(d->mCloseTabAction, QList<QKeySequence>() << QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_W) << QKeySequence(Qt::CTRL + Qt::Key_W));
- connect(d->mCloseTabAction, SIGNAL(triggered(bool)), SLOT(onCloseTabClicked()));
+ connect(d->mCloseTabAction, &QAction::triggered, this, [this]() { d->onCloseTabClicked(); });
d->mActionMenu->addAction(d->mCloseTabAction);
d->mCloseTabAction->setEnabled(false);
d->mActivateNextTabAction = new QAction(i18n("Activate Next Tab"), this);
d->mXmlGuiClient->actionCollection()->addAction(QStringLiteral("activate_next_tab"), d->mActivateNextTabAction);
d->mActivateNextTabAction->setEnabled(false);
- connect(d->mActivateNextTabAction, SIGNAL(triggered(bool)), SLOT(activateNextTab()));
+ connect(d->mActivateNextTabAction, &QAction::triggered, [this]() { d->activateNextTab(); });
d->mActivatePreviousTabAction = new QAction(i18n("Activate Previous Tab"), this);
d->mXmlGuiClient->actionCollection()->addAction(QStringLiteral("activate_previous_tab"), d->mActivatePreviousTabAction);
d->mActivatePreviousTabAction->setEnabled(false);
- connect(d->mActivatePreviousTabAction, SIGNAL(triggered(bool)), SLOT(activatePreviousTab()));
+ connect(d->mActivatePreviousTabAction, &QAction::triggered, this, [this]() { d->activatePreviousTab(); });
d->mMoveTabLeftAction = new QAction(i18n("Move Tab Left"), this);
d->mXmlGuiClient->actionCollection()->addAction(QStringLiteral("move_tab_left"), d->mMoveTabLeftAction);
d->mMoveTabLeftAction->setEnabled(false);
- connect(d->mMoveTabLeftAction, &QAction::triggered, [this]() { d->moveTabLeft(); });
+ connect(d->mMoveTabLeftAction, &QAction::triggered, this, [this]() { d->moveTabLeft(); });
d->mMoveTabRightAction = new QAction(i18n("Move Tab Right"), this);
d->mXmlGuiClient->actionCollection()->addAction(QStringLiteral("move_tab_right"), d->mMoveTabRightAction);
d->mMoveTabRightAction->setEnabled(false);
- connect(d->mMoveTabRightAction, &QAction::triggered, [this]() { d->moveTabRight(); });
+ connect(d->mMoveTabRightAction, &QAction::triggered, this, [this]() { d->moveTabRight(); });
}
}
diff --git a/messagelist/src/pane.h b/messagelist/src/pane.h
index f98d8bf..7bf3baf 100644
--- a/messagelist/src/pane.h
+++ b/messagelist/src/pane.h
@@ -433,9 +433,6 @@ private:
void readConfig(bool restoreSession);
Q_PRIVATE_SLOT(d, void onSelectionChanged(const QItemSelection &, const QItemSelection &))
- Q_PRIVATE_SLOT(d, void onCloseTabClicked())
- Q_PRIVATE_SLOT(d, void activateNextTab())
- Q_PRIVATE_SLOT(d, void activatePreviousTab())
Q_PRIVATE_SLOT(d, void closeTab(QWidget *))
Q_PRIVATE_SLOT(d, void onCurrentTabChanged())
Q_PRIVATE_SLOT(d, void updateTabControls())