Mercurial > hg > svgui
diff view/ViewManager.cpp @ 593:aaa3be825207 integration_library
Merge from branch "toggle"
author | mathieub <mathieu.barthet@eecs.qmul.ac.uk> |
---|---|
date | Mon, 25 Jul 2011 18:55:57 +0100 |
parents | 707d43018f59 |
children | 5fa210337bee |
line wrap: on
line diff
--- a/view/ViewManager.cpp Tue Jun 14 15:27:05 2011 +0100 +++ b/view/ViewManager.cpp Mon Jul 25 18:55:57 2011 +0100 @@ -48,7 +48,8 @@ m_illuminateLocalFeatures(true), m_showWorkTitle(false), m_lightPalette(QApplication::palette()), - m_darkPalette(QApplication::palette()) + m_darkPalette(QApplication::palette()), + m_minimalModeEnabled(0) { QSettings settings; settings.beginGroup("MainWindow"); @@ -637,3 +638,19 @@ return dark; } +void +ViewManager::setMinimalModeEnabled(bool enabled) +{ + if (m_minimalModeEnabled != enabled) { + m_minimalModeEnabled = enabled; + emit minimalModeEnabledChanged(); + if (enabled) emit activity("Activates minimal mode"); + else emit activity("Activates full mode"); + } + + QSettings settings; + settings.beginGroup("MainWindow"); + settings.setValue("minimal-mode-enabled", m_minimalModeEnabled); + settings.endGroup(); +} +