diff --git a/src/libtomahawk/TomahawkSettings.cpp b/src/libtomahawk/TomahawkSettings.cpp index d4237488c..81a0232a0 100644 --- a/src/libtomahawk/TomahawkSettings.cpp +++ b/src/libtomahawk/TomahawkSettings.cpp @@ -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 { diff --git a/src/libtomahawk/TomahawkSettings.h b/src/libtomahawk/TomahawkSettings.h index 94182084d..7373452f8 100644 --- a/src/libtomahawk/TomahawkSettings.h +++ b/src/libtomahawk/TomahawkSettings.h @@ -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 );