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
Multimedia
Elisa
Commits
07666b17
Commit
07666b17
authored
Sep 23, 2020
by
nikunj goyal
Committed by
Nate Graham
Sep 23, 2020
Browse files
Added translations for other keyboard shortcuts
parent
e13f5912
Pipeline
#35379
passed with stage
in 10 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/elisaapplication.cpp
View file @
07666b17
...
...
@@ -155,16 +155,18 @@ void ElisaApplication::setupActions(const QString &actionName)
if
(
actionName
==
QLatin1String
(
"toggle_playlist"
)
&&
KAuthorized
::
authorizeAction
(
actionName
))
{
auto
togglePlaylistAction
=
d
->
mCollection
.
addAction
(
actionName
,
this
,
&
ElisaApplication
::
togglePlaylist
);
togglePlaylistAction
->
setShortcut
(
QKeySequence
(
Qt
::
Key_F9
));
togglePlaylistAction
->
setText
(
QStringLiteral
(
"Toggle Playlist"
));
togglePlaylistAction
->
setText
(
i18n
(
"Toggle Playlist"
));
}
if
(
actionName
==
QLatin1String
(
"Seek"
)
&&
KAuthorized
::
authorizeAction
(
actionName
))
{
auto
seekAction
=
d
->
mCollection
.
addAction
(
actionName
,
this
,
&
ElisaApplication
::
seek
);
seekAction
->
setText
(
i18n
(
"Seek forward 10 seconds"
));
d
->
mCollection
.
setDefaultShortcut
(
seekAction
,
QKeySequence
(
Qt
::
SHIFT
+
Qt
::
Key_Right
));
}
if
(
actionName
==
QLatin1String
(
"Scrub"
)
&&
KAuthorized
::
authorizeAction
(
actionName
))
{
auto
scrubAction
=
d
->
mCollection
.
addAction
(
actionName
,
this
,
&
ElisaApplication
::
scrub
);
scrubAction
->
setText
(
i18n
(
"Scrub backwards 10 seconds"
));
d
->
mCollection
.
setDefaultShortcut
(
scrubAction
,
QKeySequence
(
Qt
::
SHIFT
+
Qt
::
Key_Left
));
}
...
...
@@ -182,6 +184,7 @@ void ElisaApplication::setupActions(const QString &actionName)
if
(
actionName
==
QLatin1String
(
"Play-Pause"
)
&&
KAuthorized
::
authorizeAction
(
actionName
))
{
auto
playPauseAction
=
d
->
mCollection
.
addAction
(
actionName
,
this
,
&
ElisaApplication
::
playPause
);
playPauseAction
->
setText
(
i18n
(
"Play/pause"
));
d
->
mCollection
.
setDefaultShortcut
(
playPauseAction
,
QKeySequence
(
Qt
::
Key_Space
));
}
...
...
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