comparison main/PreferencesDialog.cpp @ 6:d4487202d0e8

* Replace all uses of ConfigFile with QSettings
author Chris Cannam
date Thu, 03 Aug 2006 16:04:00 +0000
parents 40116f709d3b
children 8b34a6460545
comparison
equal deleted inserted replaced
5:0a687ed1b50f 6:d4487202d0e8
29 #include <QString> 29 #include <QString>
30 30
31 #include <fftw3.h> 31 #include <fftw3.h>
32 32
33 #include "base/Preferences.h" 33 #include "base/Preferences.h"
34 #include "base/ConfigFile.h"
35 34
36 PreferencesDialog::PreferencesDialog(QWidget *parent, Qt::WFlags flags) : 35 PreferencesDialog::PreferencesDialog(QWidget *parent, Qt::WFlags flags) :
37 QDialog(parent, flags) 36 QDialog(parent, flags)
38 { 37 {
39 setWindowTitle(tr("Application Preferences")); 38 setWindowTitle(tr("Application Preferences"));
350 349
351 void 350 void
352 PreferencesDialog::okClicked() 351 PreferencesDialog::okClicked()
353 { 352 {
354 applyClicked(); 353 applyClicked();
355 Preferences::getInstance()->getConfigFile()->commit();
356 accept(); 354 accept();
357 } 355 }
358 356
359 void 357 void
360 PreferencesDialog::applyClicked() 358 PreferencesDialog::applyClicked()