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

Port to new connect api

parent 68138cc0
......@@ -164,7 +164,7 @@ Pane::Pane(bool restoreSession, QAbstractItemModel *model, QItemSelectionModel *
this, [this]() {d->onCloseTabClicked(); });
setTabsClosable(true);
connect(this, SIGNAL(tabCloseRequested(int)), this, SLOT(slotTabCloseRequested(int)));
connect(this, &Pane::tabCloseRequested, this, [this](int index) { d->slotTabCloseRequested(index);});
readConfig(restoreSession);
setMovable(true);
......@@ -175,8 +175,7 @@ Pane::Pane(bool restoreSession, QAbstractItemModel *model, QItemSelectionModel *
this, SLOT(onCurrentTabChanged()));
setContextMenuPolicy(Qt::CustomContextMenu);
connect(this, SIGNAL(customContextMenuRequested(QPoint)),
this, SLOT(onTabContextMenuRequest(QPoint)));
connect(this, &Pane::customContextMenuRequested, this, [this](const QPoint &point) { d->onTabContextMenuRequest(point);});
connect(MessageListSettings::self(), SIGNAL(configChanged()),
this, SLOT(updateTabControls()));
......@@ -269,7 +268,7 @@ void Pane::setXmlGuiClient(KXMLGUIClient *xmlGuiClient)
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, SIGNAL(triggered(bool)), SLOT(moveTabLeft()));
connect(d->mMoveTabLeftAction, &QAction::triggered, [this]() { d->moveTabLeft(); });
d->mMoveTabRightAction = new QAction(i18n("Move Tab Right"), this);
d->mXmlGuiClient->actionCollection()->addAction(QStringLiteral("move_tab_right"), d->mMoveTabRightAction);
......
......@@ -435,16 +435,13 @@ 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 moveTabLeft())
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 *))
Q_PRIVATE_SLOT(d, void onCurrentTabChanged())
Q_PRIVATE_SLOT(d, void onTabContextMenuRequest(const QPoint &))
Q_PRIVATE_SLOT(d, void updateTabControls())
Q_PRIVATE_SLOT(d, void changeQuicksearchVisibility(bool))
Q_PRIVATE_SLOT(d, void slotTabCloseRequested(int index))
bool eventFilter(QObject *obj, QEvent *event) override;
......
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