Commit 476757c8 authored by Christoph Cullmann's avatar Christoph Cullmann 🍨
Browse files

use XMLGUI to add hamburger menu

works for KWrite, fails for Kate
parent ceb24b01
Pipeline #236438 passed with stage
in 5 minutes and 34 seconds
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE gui SYSTEM "kpartgui.dtd">
<gui name="kate" version="98" translationDomain="kate">
<gui name="kate" version="100" translationDomain="kate">
<Menu name="file" noMerge="1">
......@@ -151,6 +151,8 @@
<DefineGroup name="find_operations"/>
<DefineGroup name="zoom_operations"/>
<Action name="hamburger_menu" />
<Menu name="ktexteditor_popup" noMerge="1">
<DefineGroup name="popup_operations"/>
......@@ -259,9 +259,7 @@ void KateMainWindow::setupImportantActions()
a->setWhatsThis(i18n("Open a form to quick open documents."));
// enable hamburger menu
auto hamburgerMenu = KStandardAction::hamburgerMenu(nullptr, nullptr, actionCollection());
QAction *const seperator = toolBar()->addSeparator();
toolBar()->insertAction(seperator, hamburgerMenu);
auto hamburgerMenu = static_cast<KHamburgerMenu *>(actionCollection()->addAction(KStandardAction::HamburgerMenu, QStringLiteral("hamburger_menu")));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment