comparison base/Preferences.cpp @ 1047:26cf6d5251ec cxx11

Further dedicated-types fixes
author Chris Cannam
date Tue, 10 Mar 2015 17:02:52 +0000
parents cc27f35aa75c
children ba16388b937d
comparison
equal deleted inserted replaced
1046:2f49be7d4264 1047:26cf6d5251ec
63 m_propertyBoxLayout = PropertyBoxLayout 63 m_propertyBoxLayout = PropertyBoxLayout
64 (settings.value("property-box-layout", int(VerticallyStacked)).toInt()); 64 (settings.value("property-box-layout", int(VerticallyStacked)).toInt());
65 m_windowType = WindowType 65 m_windowType = WindowType
66 (settings.value("window-type", int(HanningWindow)).toInt()); 66 (settings.value("window-type", int(HanningWindow)).toInt());
67 m_resampleQuality = settings.value("resample-quality", 1).toInt(); 67 m_resampleQuality = settings.value("resample-quality", 1).toInt();
68 m_fixedSampleRate = settings.value("fixed-sample-rate", 0).toInt(); 68 m_fixedSampleRate = settings.value("fixed-sample-rate", 0).toDouble();
69 m_resampleOnLoad = settings.value("resample-on-load", false).toBool(); 69 m_resampleOnLoad = settings.value("resample-on-load", false).toBool();
70 m_normaliseAudio = settings.value("normalise-audio", false).toBool(); 70 m_normaliseAudio = settings.value("normalise-audio", false).toBool();
71 m_backgroundMode = BackgroundMode 71 m_backgroundMode = BackgroundMode
72 (settings.value("background-mode", int(BackgroundFromTheme)).toInt()); 72 (settings.value("background-mode", int(BackgroundFromTheme)).toInt());
73 m_timeToTextMode = TimeToTextMode 73 m_timeToTextMode = TimeToTextMode
559 emit propertyChanged("Resample On Load"); 559 emit propertyChanged("Resample On Load");
560 } 560 }
561 } 561 }
562 562
563 void 563 void
564 Preferences::setFixedSampleRate(int rate) 564 Preferences::setFixedSampleRate(sv_samplerate_t rate)
565 { 565 {
566 if (m_fixedSampleRate != rate) { 566 if (m_fixedSampleRate != rate) {
567 m_fixedSampleRate = rate; 567 m_fixedSampleRate = rate;
568 QSettings settings; 568 QSettings settings;
569 settings.beginGroup("Preferences"); 569 settings.beginGroup("Preferences");