Commit 3a470a07 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: hide status bar

And allow it to be visible.
parent a4b671d6
......@@ -136,6 +136,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
* Status Bar *
**************/
createStatusBar();
statusBar()->setVisible( getSettings()->value( "status-bar-visible", false ).toBool() );
/**************************
* UI and Widgets design
......@@ -304,6 +305,7 @@ MainInterface::~MainInterface()
settings->setValue( "adv-controls",
getControlsVisibilityStatus() & CONTROLS_ADVANCED );
settings->setValue( "status-bar-visible", statusBar()->isVisible() );
/* Save the stackCentralW sizes */
settings->setValue( "bgSize", stackWidgetsSizes[bgWidget] );
......@@ -867,6 +869,11 @@ int MainInterface::getControlsVisibilityStatus()
+ CONTROLS_ADVANCED * controls->b_advancedVisible );
}
void MainInterface::setStatusBarVisibility( bool b_visible )
{
statusBar()->setVisible( b_visible );
}
#if 0
void MainInterface::visual()
{
......
......@@ -191,6 +191,8 @@ public slots:
void toggleInterfaceFullScreen();
void toggleFSC();
void setStatusBarVisibility(bool b_visible);
void popupMenu( const QPoint& );
void changeThumbbarButtons( int );
......
......@@ -53,6 +53,7 @@
#include <QActionGroup>
#include <QSignalMapper>
#include <QSystemTrayIcon>
#include <QStatusBar>
/*
This file defines the main menus and the pop-up menu (right-click menu)
......@@ -493,6 +494,10 @@ QMenu *QVLCMenu::ViewMenu( intf_thread_t *p_intf, QMenu *current, MainInterface
action->setChecked( mi->isPlDocked() );
CONNECT( action, triggered( bool ), mi, dockPlaylist( bool ) );
action = menu->addAction( qtr( "Status Bar" ) );
action->setCheckable( true );
action->setChecked( mi->statusBar()->isVisible() );
CONNECT( action, triggered( bool ), mi, setStatusBarVisibility( bool) );
#if 0 /* For Visualisations. Not yet working */
adv = menu->addAction( qtr( "Visualizations selector" ), mi,
SLOT( visual() ) );
......
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