Commit a4ba6c11 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Port usage of KNS3::standardAction

See https://phabricator.kde.org/T12200.
parent 66ef9264
Pipeline #42270 passed with stage
in 11 minutes and 34 seconds
......@@ -87,7 +87,9 @@ void ThemeEditorMainWindow::setupActions()
connect(mAddExtraPage, &QAction::triggered, this, &ThemeEditorMainWindow::slotAddExtraPage);
actionCollection()->addAction(QStringLiteral("add_extra_page"), mAddExtraPage);
if (KAuthorized::authorize(QStringLiteral("ghns"))) {
mUploadTheme = KNS3::standardAction(i18n("Upload theme..."), this, SLOT(slotUploadTheme()), actionCollection(), "upload_theme");
mUploadTheme = new QAction(QIcon::fromTheme(QStringLiteral("get-hot-new-stuff")), i18n("Upload theme..."), this);
connect(mUploadTheme, &QAction::triggered, this, &ThemeEditorMainWindow::slotUploadTheme);
actionCollection()->addAction(QStringLiteral("upload_theme"), mUploadTheme);
}
mNewThemeAction = KStandardAction::openNew(this, &ThemeEditorMainWindow::slotNewTheme, actionCollection());
......
......@@ -88,7 +88,9 @@ void ContactEditorMainWindow::setupActions()
actionCollection()->addAction(QStringLiteral("add_extra_page"), mAddExtraPage);
if (KAuthorized::authorize(QStringLiteral("ghns"))) {
mUploadTheme = KNS3::standardAction(i18n("Upload theme..."), this, SLOT(slotUploadTheme()), actionCollection(), "upload_theme");
mUploadTheme = new QAction(QIcon::fromTheme(QStringLiteral("get-hot-new-stuff")), i18n("Upload theme..."), this);
connect(mUploadTheme, &QAction::triggered, this, &ContactEditorMainWindow::slotUploadTheme);
actionCollection()->addAction(QStringLiteral("upload_theme"), mUploadTheme);
}
mNewThemeAction = KStandardAction::openNew(this, &ContactEditorMainWindow::slotNewTheme, actionCollection());
......
......@@ -91,7 +91,9 @@ void ThemeEditorMainWindow::setupActions()
actionCollection()->addAction(QStringLiteral("add_extra_page"), mAddExtraPage);
if (KAuthorized::authorize(QStringLiteral("ghns"))) {
mUploadTheme = KNS3::standardAction(i18n("Upload theme..."), this, SLOT(slotUploadTheme()), actionCollection(), "upload_theme");
mUploadTheme = new QAction(QIcon::fromTheme(QStringLiteral("get-hot-new-stuff")), i18n("Upload theme..."), this);
connect(mUploadTheme, &QAction::triggered, this, &ThemeEditorMainWindow::slotUploadTheme);
actionCollection()->addAction(QStringLiteral("upload_theme"), mUploadTheme);
}
mNewThemeAction = KStandardAction::openNew(this, &ThemeEditorMainWindow::slotNewTheme, actionCollection());
......
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