Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit f47b0024 authored by Laurent Montel's avatar Laurent Montel 😁

Port more code to new connect api

parent fe7ca120
......@@ -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);
connect(d->mMoveTabRightAction, SIGNAL(triggered(bool)), SLOT(moveTabRight()));
connect(d->mMoveTabRightAction, &QAction::triggered, [this]() { d->moveTabRight(); });
......@@ -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 *))
Markdown is supported
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