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
Plasma
Plasma Integration
Commits
13342930
Commit
13342930
authored
Dec 10, 2020
by
Laurent Montel
😁
Browse files
operator+/- is disabled for QFlags in qt6
parent
4d7c210d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/platformtheme/kdirselectdialog.cpp
View file @
13342930
...
...
@@ -363,7 +363,7 @@ KDirSelectDialog::KDirSelectDialog(const QUrl &startDir, bool localOnly, QWidget
d
->
deleteAction
=
new
QAction
(
i18nc
(
"@action:inmenu"
,
"Delete"
),
this
);
d
->
m_actions
->
addAction
(
d
->
deleteAction
->
objectName
(),
d
->
deleteAction
);
d
->
deleteAction
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"edit-delete"
)));
d
->
deleteAction
->
setShortcut
(
Qt
::
SHIFT
+
Qt
::
Key_Delete
);
d
->
deleteAction
->
setShortcut
(
Qt
::
SHIFT
|
Qt
::
Key_Delete
);
connect
(
d
->
deleteAction
,
SIGNAL
(
triggered
(
bool
)),
this
,
SLOT
(
slotDelete
()));
d
->
m_contextMenu
->
addAction
(
d
->
deleteAction
);
...
...
@@ -379,7 +379,7 @@ KDirSelectDialog::KDirSelectDialog(const QUrl &startDir, bool localOnly, QWidget
QAction
*
propertiesAction
=
new
QAction
(
i18nc
(
"@action:inmenu"
,
"Properties"
),
this
);
d
->
m_actions
->
addAction
(
propertiesAction
->
objectName
(),
propertiesAction
);
propertiesAction
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"document-properties"
)));
propertiesAction
->
setShortcut
(
Qt
::
ALT
+
Qt
::
Key_Return
);
propertiesAction
->
setShortcut
(
Qt
::
ALT
|
Qt
::
Key_Return
);
connect
(
propertiesAction
,
SIGNAL
(
triggered
(
bool
)),
this
,
SLOT
(
slotProperties
()));
d
->
m_contextMenu
->
addAction
(
propertiesAction
);
...
...
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