Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Grantlee Editor
Commits
a4ba6c11
Commit
a4ba6c11
authored
Nov 27, 2020
by
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
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
contactprintthemeeditor/themeeditormainwindow.cpp
View file @
a4ba6c11
...
...
@@ -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
());
...
...
contactthemeeditor/contacteditormainwindow.cpp
View file @
a4ba6c11
...
...
@@ -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
());
...
...
headerthemeeditor/themeeditormainwindow.cpp
View file @
a4ba6c11
...
...
@@ -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
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment