Commit 1e3114e4 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add more default action in hamburger menu

parent 13a64a4d
Pipeline #63870 passed with stage
in 6 minutes and 41 seconds
......@@ -34,12 +34,12 @@ MainWindow::MainWindow()
setCentralWidget(mMainWidget);
initActions();
setStandardToolBarMenuEnabled(true);
toolBar()->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
initActions();
setupGUI(Save | Create, QStringLiteral("kaddressbookui.rc"));
setAutoSaveSettings();
......@@ -87,8 +87,13 @@ void MainWindow::initActions()
void MainWindow::updateHamburgerMenu()
{
QMenu *menu = new QMenu;
menu->addAction(actionCollection()->action(QStringLiteral("akonadi_resource_create")));
menu->addSeparator();
menu->addAction(actionCollection()->action(QLatin1String(KStandardAction::name(KStandardAction::Print))));
menu->addAction(actionCollection()->action(QLatin1String(KStandardAction::name(KStandardAction::PrintPreview))));
menu->addSeparator();
menu->addAction(actionCollection()->action(QLatin1String(KStandardAction::name(KStandardAction::Quit))));
mHamburgerMenu->setMenu(menu);
}
......
Markdown is supported
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