1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 01:09:42 +01:00

* TomahawkSettings can now store fullscreen mode.

This commit is contained in:
Christian Muehlhaeuser 2013-01-16 13:16:27 +01:00
parent 18ebcc1156
commit 6736c69928
2 changed files with 19 additions and 0 deletions

View File

@ -929,6 +929,7 @@ TomahawkSettings::setVerboseNotifications( bool notifications )
setValue( "ui/notifications/verbose", notifications );
}
bool
TomahawkSettings::menuBarVisible() const
{
@ -939,6 +940,7 @@ TomahawkSettings::menuBarVisible() const
#endif
}
void
TomahawkSettings::setMenuBarVisible( bool visible )
{
@ -948,6 +950,20 @@ TomahawkSettings::setMenuBarVisible( bool visible )
}
bool
TomahawkSettings::fullscreenEnabled() const
{
return value( "ui/mainwindow/fullscreenEnabled", false ).toBool();
}
void
TomahawkSettings::setFullscreenEnabled( bool enabled )
{
setValue( "ui/mainwindow/fullscreenEnabled", enabled );
}
bool
TomahawkSettings::showOfflineSources() const
{

View File

@ -79,6 +79,9 @@ public:
bool menuBarVisible() const;
void setMenuBarVisible( bool visible );
bool fullscreenEnabled() const;
void setFullscreenEnabled( bool fullscreen );
// Collection Stuff
bool showOfflineSources() const;
void setShowOfflineSources( bool show );