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
Utilities
Kate
Commits
934ab379
Commit
934ab379
authored
Feb 26, 2022
by
Christoph Cullmann
🐮
Browse files
ensure Previous/Next Document has menu text
parent
ac86fcb0
Pipeline
#142653
passed with stage
in 2 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
addons/filetree/katefiletreeplugin.cpp
View file @
934ab379
...
...
@@ -235,13 +235,13 @@ KateFileTreePluginView::~KateFileTreePluginView()
void
KateFileTreePluginView
::
setupActions
()
{
auto
aPrev
=
actionCollection
()
->
addAction
(
QStringLiteral
(
"filetree_prev_document"
));
aPrev
->
setT
oolTip
(
i18n
(
"Previous Document"
));
aPrev
->
setT
ext
(
i18n
(
"Previous Document"
));
aPrev
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"go-up"
)));
actionCollection
()
->
setDefaultShortcut
(
aPrev
,
Qt
::
ALT
|
Qt
::
Key_Up
);
connect
(
aPrev
,
&
QAction
::
triggered
,
m_fileTree
,
&
KateFileTree
::
slotDocumentPrev
);
auto
aNext
=
actionCollection
()
->
addAction
(
QStringLiteral
(
"filetree_next_document"
));
aNext
->
setT
oolTip
(
i18n
(
"Next Document"
));
aNext
->
setT
ext
(
i18n
(
"Next Document"
));
aNext
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"go-down"
)));
actionCollection
()
->
setDefaultShortcut
(
aNext
,
Qt
::
ALT
|
Qt
::
Key_Down
);
connect
(
aNext
,
&
QAction
::
triggered
,
m_fileTree
,
&
KateFileTree
::
slotDocumentNext
);
...
...
Write
Preview
Markdown
is supported
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