summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-12-19 07:06:50 +0100
committerMontel Laurent <[email protected]>2017-12-19 07:06:50 +0100
commitf47b0024382a943c2632146bf3b88ce6a9b64e83 (patch)
tree048f6c63b2d0750ceb027150a7b4c2e175fb3785
parentfe7ca12066273115f110246b3f14901d5a6e384f (diff)
Port more code to new connect api
-rw-r--r--messagelist/src/pane.cpp4
-rw-r--r--messagelist/src/pane.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/messagelist/src/pane.cpp b/messagelist/src/pane.cpp
index f7cd330..11f2bfe 100644
--- a/messagelist/src/pane.cpp
+++ b/messagelist/src/pane.cpp
@@ -199,7 +199,7 @@ void Pane::Private::addActivateTabAction(int i)
QAction *action = new QAction(i18n("Activate Tab %1", i), q);
mXmlGuiClient->actionCollection()->addAction(actionname, action);
mXmlGuiClient->actionCollection()->setDefaultShortcut(action, QKeySequence(QStringLiteral("Alt+%1").arg(i)));
- connect(action, SIGNAL(triggered(bool)), q, SLOT(activateTab()));
+ connect(action, &QAction::triggered, q, [this]() { activateTab(); });
}
void Pane::Private::slotTabCloseRequested(int index)
@@ -273,7 +273,7 @@ void Pane::setXmlGuiClient(KXMLGUIClient *xmlGuiClient)
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, SIGNAL(triggered(bool)), SLOT(moveTabRight()));
+ connect(d->mMoveTabRightAction, &QAction::triggered, [this]() { d->moveTabRight(); });
}
}
diff --git a/messagelist/src/pane.h b/messagelist/src/pane.h
index 4629d7c..f98d8bf 100644
--- a/messagelist/src/pane.h
+++ b/messagelist/src/pane.h
@@ -434,8 +434,6 @@ private:
Q_PRIVATE_SLOT(d, void onSelectionChanged(const QItemSelection &, const QItemSelection &))
Q_PRIVATE_SLOT(d, void onCloseTabClicked())
- Q_PRIVATE_SLOT(d, void activateTab())
- Q_PRIVATE_SLOT(d, void moveTabRight())
Q_PRIVATE_SLOT(d, void activateNextTab())
Q_PRIVATE_SLOT(d, void activatePreviousTab())
Q_PRIVATE_SLOT(d, void closeTab(QWidget *))