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
e155fc75
Commit
e155fc75
authored
Nov 08, 2021
by
Waqar Ahmed
Committed by
Christoph Cullmann
Nov 08, 2021
Browse files
FileTreePlugin: setTooltip instead of setText for icon only toolbar
parent
fec440d4
Pipeline
#95588
passed with stage
in 3 minutes and 8 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
addons/filetree/katefiletreeplugin.cpp
View file @
e155fc75
...
...
@@ -233,13 +233,13 @@ KateFileTreePluginView::~KateFileTreePluginView()
void
KateFileTreePluginView
::
setupActions
()
{
auto
aPrev
=
actionCollection
()
->
addAction
(
QStringLiteral
(
"filetree_prev_document"
));
aPrev
->
setT
ext
(
i18n
(
"Previous Document"
));
aPrev
->
setT
oolTip
(
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
ext
(
i18n
(
"Next Document"
));
aNext
->
setT
oolTip
(
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
);
...
...
@@ -250,12 +250,10 @@ void KateFileTreePluginView::setupActions()
connect
(
aShowActive
,
&
QAction
::
triggered
,
this
,
&
KateFileTreePluginView
::
showActiveDocument
);
auto
aSave
=
actionCollection
()
->
addAction
(
QStringLiteral
(
"filetree_save"
),
this
,
SLOT
(
slotDocumentSave
()));
aSave
->
setText
(
i18n
(
"Save Current Document"
));
aSave
->
setToolTip
(
i18n
(
"Save the current document"
));
aSave
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"document-save"
)));
auto
aSaveAs
=
actionCollection
()
->
addAction
(
QStringLiteral
(
"filetree_save_as"
),
this
,
SLOT
(
slotDocumentSaveAs
()));
aSaveAs
->
setText
(
i18n
(
"Save Current Document As"
));
aSaveAs
->
setToolTip
(
i18n
(
"Save current document under new name"
));
aSaveAs
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"document-save-as"
)));
...
...
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