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
Graphics
Gwenview
Commits
8639b438
Commit
8639b438
authored
Jun 03, 2020
by
Nate Graham
Browse files
Add standard Alt+Return shortcut for Properties menu item
parent
d825e207
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/fileopscontextmanageritem.cpp
View file @
8639b438
...
...
@@ -177,6 +177,7 @@ FileOpsContextManagerItem::FileOpsContextManagerItem(ContextManager* manager, QL
mShowPropertiesAction
=
file
->
addAction
(
QStringLiteral
(
"file_show_properties"
),
this
,
SLOT
(
showProperties
()));
mShowPropertiesAction
->
setText
(
i18n
(
"Properties"
));
mShowPropertiesAction
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"document-properties"
)));
mShowPropertiesAction
->
setShortcut
(
QKeySequence
(
Qt
::
ALT
+
Qt
::
Key_Return
));
mCreateFolderAction
=
file
->
addAction
(
QStringLiteral
(
"file_create_folder"
),
this
,
SLOT
(
createFolder
()));
mCreateFolderAction
->
setText
(
i18n
(
"Create Folder..."
));
...
...
part/gvpart.cpp
View file @
8639b438
...
...
@@ -78,9 +78,11 @@ GVPart::GVPart(QWidget* parentWidget, QObject* parent, const QVariantList& /*arg
QAction
*
action
=
new
QAction
(
actionCollection
());
action
->
setText
(
i18nc
(
"@action"
,
"Properties"
));
action
->
setShortcut
(
QKeySequence
(
Qt
::
ALT
+
Qt
::
Key_Return
));
connect
(
action
,
&
QAction
::
triggered
,
this
,
&
GVPart
::
showProperties
);
actionCollection
()
->
addAction
(
QStringLiteral
(
"file_show_properties"
),
action
);
KStandardAction
::
saveAs
(
this
,
SLOT
(
saveAs
()),
actionCollection
());
new
GVBrowserExtension
(
this
);
...
...
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