comparison base/Preferences.cpp @ 304:4fc6f49436b3

* Add support for remote files to image layer
author Chris Cannam
date Fri, 05 Oct 2007 15:52:52 +0000
parents c022976d18e8
children 048b21bc9891 94fc0591ea43
comparison
equal deleted inserted replaced
303:15b47d30c085 304:4fc6f49436b3
40 m_propertyBoxLayout(VerticallyStacked), 40 m_propertyBoxLayout(VerticallyStacked),
41 m_windowType(HanningWindow), 41 m_windowType(HanningWindow),
42 m_resampleQuality(1), 42 m_resampleQuality(1),
43 m_omitRecentTemps(true), 43 m_omitRecentTemps(true),
44 m_tempDirRoot(""), 44 m_tempDirRoot(""),
45 m_resampleOnLoad(true) 45 m_resampleOnLoad(false)
46 { 46 {
47 QSettings settings; 47 QSettings settings;
48 settings.beginGroup("Preferences"); 48 settings.beginGroup("Preferences");
49 m_spectrogramSmoothing = SpectrogramSmoothing 49 m_spectrogramSmoothing = SpectrogramSmoothing
50 (settings.value("spectrogram-smoothing", int(m_spectrogramSmoothing)).toInt()); 50 (settings.value("spectrogram-smoothing", int(m_spectrogramSmoothing)).toInt());
52 m_propertyBoxLayout = PropertyBoxLayout 52 m_propertyBoxLayout = PropertyBoxLayout
53 (settings.value("property-box-layout", int(VerticallyStacked)).toInt()); 53 (settings.value("property-box-layout", int(VerticallyStacked)).toInt());
54 m_windowType = WindowType 54 m_windowType = WindowType
55 (settings.value("window-type", int(HanningWindow)).toInt()); 55 (settings.value("window-type", int(HanningWindow)).toInt());
56 m_resampleQuality = settings.value("resample-quality", 1).toInt(); 56 m_resampleQuality = settings.value("resample-quality", 1).toInt();
57 m_resampleOnLoad = settings.value("resample-on-load", true).toBool(); 57 m_resampleOnLoad = settings.value("resample-on-load", false).toBool();
58 m_backgroundMode = BackgroundMode 58 m_backgroundMode = BackgroundMode
59 (settings.value("background-mode", int(BackgroundFromTheme)).toInt()); 59 (settings.value("background-mode", int(BackgroundFromTheme)).toInt());
60 settings.endGroup(); 60 settings.endGroup();
61 61
62 settings.beginGroup("TempDirectory"); 62 settings.beginGroup("TempDirectory");