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
4cde4429
Commit
4cde4429
authored
May 26, 2021
by
Christoph Cullmann
🐮
Browse files
deactivate Kate command bar if KXMLGui command bar is there
parent
9c11cf1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
kate/katemainwindow.cpp
View file @
4cde4429
...
...
@@ -249,11 +249,15 @@ void KateMainWindow::setupImportantActions()
connect
(
a
,
&
QAction
::
triggered
,
this
,
&
KateMainWindow
::
slotQuickOpen
);
a
->
setWhatsThis
(
i18n
(
"Open a form to quick open documents."
));
// kate command bar
a
=
actionCollection
()
->
addAction
(
QStringLiteral
(
"view_commandbar_open"
));
a
->
setText
(
i18n
(
"&Command Bar"
));
actionCollection
()
->
setDefaultShortcut
(
a
,
QKeySequence
(
Qt
::
CTRL
|
Qt
::
ALT
|
Qt
::
Key_I
));
connect
(
a
,
&
QAction
::
triggered
,
this
,
&
KateMainWindow
::
slotCommandBarOpen
);
// kate command bar, only add this if we don't already have the generic one from KXMLGui
// https://invent.kde.org/frameworks/kxmlgui/-/merge_requests/54
// FIXME: remove after we require Frameworks >= 5.83
if
(
!
actionCollection
()
->
action
(
QStringLiteral
(
"open_kcommand_bar"
)))
{
a
=
actionCollection
()
->
addAction
(
QStringLiteral
(
"view_commandbar_open"
));
a
->
setText
(
i18n
(
"&Command Bar"
));
actionCollection
()
->
setDefaultShortcut
(
a
,
QKeySequence
(
Qt
::
CTRL
|
Qt
::
ALT
|
Qt
::
Key_I
));
connect
(
a
,
&
QAction
::
triggered
,
this
,
&
KateMainWindow
::
slotCommandBarOpen
);
}
}
void
KateMainWindow
::
setupMainWindow
()
...
...
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