Mercurial > hg > svapp
comparison framework/MainWindowBase.cpp @ 511:14a81e881b1a 3.0-integration
Remove background mode, it no longer works properly
author | Chris Cannam |
---|---|
date | Tue, 19 Jan 2016 16:29:57 +0000 |
parents | 74fa499d5f3c |
children | 68ab0fe3bce4 |
comparison
equal
deleted
inserted
replaced
506:39e94df71d24 | 511:14a81e881b1a |
---|---|
194 settings.beginGroup("Preferences"); | 194 settings.beginGroup("Preferences"); |
195 viewFontSize = settings.value("view-font-size", viewFontSize).toInt(); | 195 viewFontSize = settings.value("view-font-size", viewFontSize).toInt(); |
196 settings.setValue("view-font-size", viewFontSize); | 196 settings.setValue("view-font-size", viewFontSize); |
197 settings.endGroup(); | 197 settings.endGroup(); |
198 | 198 |
199 #ifdef NOT_DEFINED // This no longer works correctly on any platform AFAICS | |
199 Preferences::BackgroundMode mode = | 200 Preferences::BackgroundMode mode = |
200 Preferences::getInstance()->getBackgroundMode(); | 201 Preferences::getInstance()->getBackgroundMode(); |
201 m_initialDarkBackground = m_viewManager->getGlobalDarkBackground(); | 202 m_initialDarkBackground = m_viewManager->getGlobalDarkBackground(); |
202 if (mode != Preferences::BackgroundFromTheme) { | 203 if (mode != Preferences::BackgroundFromTheme) { |
203 m_viewManager->setGlobalDarkBackground | 204 m_viewManager->setGlobalDarkBackground |
204 (mode == Preferences::DarkBackground); | 205 (mode == Preferences::DarkBackground); |
205 } | 206 } |
207 #endif | |
206 | 208 |
207 m_paneStack = new PaneStack(0, m_viewManager); | 209 m_paneStack = new PaneStack(0, m_viewManager); |
208 connect(m_paneStack, SIGNAL(currentPaneChanged(Pane *)), | 210 connect(m_paneStack, SIGNAL(currentPaneChanged(Pane *)), |
209 this, SLOT(currentPaneChanged(Pane *))); | 211 this, SLOT(currentPaneChanged(Pane *))); |
210 connect(m_paneStack, SIGNAL(currentLayerChanged(Pane *, Layer *)), | 212 connect(m_paneStack, SIGNAL(currentLayerChanged(Pane *, Layer *)), |