Commit 31232338 authored by Scott Wheeler's avatar Scott Wheeler

Sneeking in Ctrl-M and Ctrl-B to hide menu and toolbar.

svn path=/trunk/kdemultimedia/juk/; revision=207644
parent 1758b149
......@@ -136,6 +136,10 @@ void JuK::setupActions()
new KAction(i18n("Delete"), "editdelete", 0, splitter, SLOT(removeSelectedItems()), actionCollection(), "removeItem");
// settings menu
new KToggleAction(i18n("Show Menu Bar"), "CTRL+m", this, SLOT(slotToggleMenuBar()), actionCollection(), "toggleMenuBar");
new KToggleAction(i18n("Show Tool Bar"), "CTRL+b", this, SLOT(slotToggleToolBar()), actionCollection(), "toggleToolBar");
restoreOnLoadAction = new KToggleAction(i18n("Restore Playlists on Load"), 0, actionCollection(), "restoreOnLoad");
toggleSystemTrayAction = new KToggleAction(i18n("Dock in System Tray"), 0, actionCollection(), "toggleSystemTray");
......
......@@ -25,6 +25,7 @@
#include <kaction.h>
#include <kstdaction.h>
#include <kmainwindow.h>
#include <kmenubar.h>
#include <qlabel.h>
......@@ -123,6 +124,9 @@ private slots:
void playSelectedFile() { play(splitter->playSelectedFile()); }
void playFirstFile() { play(splitter->playFirstFile()); }
void slotToggleMenuBar() { menuBar()->isVisible() ? menuBar()->hide() : menuBar()->show(); }
void slotToggleToolBar() { toolBar()->isVisible() ? toolBar()->hide() : toolBar()->show(); }
private:
// layout objects
PlaylistSplitter *splitter;
......
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