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

Port to new connect api

parent dfb53cef
......@@ -58,10 +58,10 @@ public:
}
separatorAction = new QAction(q);
separatorAction->setSeparator(true);
q->connect(downloadThemesAction, SIGNAL(triggered(bool)), q, SLOT(slotDownloadHeaderThemes()));
q->connect(downloadThemesAction, &QAction::triggered, q, [this]() { slotDownloadHeaderThemes(); });
}
q->connect(watch, SIGNAL(dirty(QString)), SLOT(directoryChanged()));
q->connect(watch, &KDirWatch::dirty, q, [this]() { directoryChanged(); } );
updateThemesPath(true);
// Migrate the old configuration format that only support mail and addressbook
......@@ -197,7 +197,7 @@ public:
themesActionList.append(act);
actionGroup->addAction(act);
menu->addAction(act);
q->connect(act, SIGNAL(triggered(bool)), q, SLOT(slotThemeSelected()));
q->connect(act, &KToggleAction::triggered, q, [this]() { slotThemeSelected(); });
}
if (!themeActivatedFound) {
if (!themesActionList.isEmpty() && !themeActivated.isEmpty()) {
......
......@@ -61,9 +61,6 @@ Q_SIGNALS:
void updateThemes();
private:
Q_PRIVATE_SLOT(d, void directoryChanged())
Q_PRIVATE_SLOT(d, void slotDownloadHeaderThemes())
Q_PRIVATE_SLOT(d, void slotThemeSelected())
class Private;
Private *const d;
};
......
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