Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KMenuEdit
Commits
a792898b
Commit
a792898b
authored
Dec 10, 2020
by
Laurent Montel
Browse files
operator+/- is disabled for QFlags in qt6
parent
719a3f81
Changes
1
Hide whitespace changes
Inline
Side-by-side
kmenuedit.cpp
View file @
a792898b
...
...
@@ -66,7 +66,7 @@ void KMenuEdit::setupActions()
QAction
*
action
=
actionCollection
()
->
addAction
(
NEW_SUBMENU_ACTION_NAME
);
action
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"menu_new"
)));
action
->
setText
(
i18n
(
"&New Submenu..."
));
actionCollection
()
->
setDefaultShortcut
(
action
,
QKeySequence
(
Qt
::
CTRL
+
Qt
::
SHIFT
+
Qt
::
Key_N
));
actionCollection
()
->
setDefaultShortcut
(
action
,
QKeySequence
(
Qt
::
CTRL
|
Qt
::
SHIFT
|
Qt
::
Key_N
));
action
=
actionCollection
()
->
addAction
(
NEW_ITEM_ACTION_NAME
);
action
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"document-new"
)));
action
->
setText
(
i18n
(
"New &Item..."
));
...
...
@@ -74,7 +74,7 @@ void KMenuEdit::setupActions()
action
=
actionCollection
()
->
addAction
(
NEW_SEPARATOR_ACTION_NAME
);
action
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"menu_new_sep"
)));
action
->
setText
(
i18n
(
"New S&eparator"
));
actionCollection
()
->
setDefaultShortcut
(
action
,
QKeySequence
(
Qt
::
CTRL
+
Qt
::
Key_I
));
actionCollection
()
->
setDefaultShortcut
(
action
,
QKeySequence
(
Qt
::
CTRL
|
Qt
::
Key_I
));
// "sort selection" menu
KActionMenu
*
sortMenu
=
new
KActionMenu
(
QIcon
::
fromTheme
(
QStringLiteral
(
"view-sort-ascending"
)),
i18n
(
"&Sort"
),
this
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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