mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 21:27:58 +02:00
* Disable/hide status-bar.
This commit is contained in:
@@ -473,7 +473,10 @@ TomahawkWindow::setupSideBar()
|
|||||||
void
|
void
|
||||||
TomahawkWindow::setupStatusBar()
|
TomahawkWindow::setupStatusBar()
|
||||||
{
|
{
|
||||||
statusBar()->addPermanentWidget( m_audioControls, 1 );
|
statusBar()->hide();
|
||||||
|
setStatusBar( 0 );
|
||||||
|
|
||||||
|
ui->centralWidget->layout()->addWidget( m_audioControls );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1067,13 +1070,13 @@ void
|
|||||||
TomahawkWindow::fullScreenEntered()
|
TomahawkWindow::fullScreenEntered()
|
||||||
{
|
{
|
||||||
TomahawkSettings::instance()->setFullscreenEnabled( true );
|
TomahawkSettings::instance()->setFullscreenEnabled( true );
|
||||||
statusBar()->setSizeGripEnabled( false );
|
// statusBar()->setSizeGripEnabled( false );
|
||||||
|
|
||||||
// Since we just disabled the size-grip the entire statusbar will shift a bit to the right
|
// Since we just disabled the size-grip the entire statusbar will shift a bit to the right
|
||||||
// The volume bar would now have no margin to the right screen edge. Prevent that.
|
// The volume bar would now have no margin to the right screen edge. Prevent that.
|
||||||
QMargins margins = statusBar()->contentsMargins();
|
// QMargins margins = statusBar()->contentsMargins();
|
||||||
margins.setRight( 24 );
|
// margins.setRight( 24 );
|
||||||
statusBar()->setContentsMargins( margins );
|
// statusBar()->setContentsMargins( margins );
|
||||||
|
|
||||||
#if defined( Q_WS_MAC )
|
#if defined( Q_WS_MAC )
|
||||||
ActionCollection::instance()->getAction( "fullscreen" )->setText( tr( "Exit Full Screen" ) );
|
ActionCollection::instance()->getAction( "fullscreen" )->setText( tr( "Exit Full Screen" ) );
|
||||||
@@ -1085,13 +1088,13 @@ void
|
|||||||
TomahawkWindow::fullScreenExited()
|
TomahawkWindow::fullScreenExited()
|
||||||
{
|
{
|
||||||
TomahawkSettings::instance()->setFullscreenEnabled( false );
|
TomahawkSettings::instance()->setFullscreenEnabled( false );
|
||||||
statusBar()->setSizeGripEnabled( true );
|
// statusBar()->setSizeGripEnabled( true );
|
||||||
|
|
||||||
// Since we just enabled the size-grip the entire statusbar will shift a bit to the left
|
// Since we just enabled the size-grip the entire statusbar will shift a bit to the left
|
||||||
// The volume bar would now have too big a margin to the right screen edge. Prevent that.
|
// The volume bar would now have too big a margin to the right screen edge. Prevent that.
|
||||||
QMargins margins = statusBar()->contentsMargins();
|
// QMargins margins = statusBar()->contentsMargins();
|
||||||
margins.setRight( 0 );
|
// margins.setRight( 0 );
|
||||||
statusBar()->setContentsMargins( margins );
|
// statusBar()->setContentsMargins( margins );
|
||||||
|
|
||||||
#if defined( Q_WS_MAC )
|
#if defined( Q_WS_MAC )
|
||||||
ActionCollection::instance()->getAction( "fullscreen" )->setText( tr( "Enter Full Screen" ) );
|
ActionCollection::instance()->getAction( "fullscreen" )->setText( tr( "Enter Full Screen" ) );
|
||||||
|
Reference in New Issue
Block a user