diff options
Diffstat (limited to 'dgedit')
-rw-r--r-- | dgedit/mainwindow.cc | 7 | ||||
-rw-r--r-- | dgedit/mainwindow.h | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/dgedit/mainwindow.cc b/dgedit/mainwindow.cc index a4d4af8..5956d1c 100644 --- a/dgedit/mainwindow.cc +++ b/dgedit/mainwindow.cc @@ -296,9 +296,10 @@ void MainWindow::closeEvent(QCloseEvent *) void MainWindow::loadSettings() { - QSettings settings("Aasimon.org", "DGEdit"); + QSettings settings("config.ini", QSettings::IniFormat); settings.beginGroup("MainWindow"); + exportp->setText(settings.value("exportp", "").toString()); resize(settings.value("size", QSize(700, 800)).toSize()); move(settings.value("pos", QPoint(0, 0)).toPoint()); settings.endGroup(); @@ -306,11 +307,13 @@ void MainWindow::loadSettings() void MainWindow::saveSettings() { - QSettings settings("Aasimon.org", "DGEdit"); + QSettings settings("config.ini", QSettings::IniFormat); settings.beginGroup("MainWindow"); + settings.setValue("exportp", exportp->text()); settings.setValue("size", size()); settings.setValue("pos", pos()); + settings.setValue("exportp", exportp->text()); settings.endGroup(); } diff --git a/dgedit/mainwindow.h b/dgedit/mainwindow.h index 3e9e588..280b60c 100644 --- a/dgedit/mainwindow.h +++ b/dgedit/mainwindow.h @@ -32,6 +32,7 @@ #include <QComboBox> #include <QSlider> #include <QLineEdit> +#include <QCloseEvent> #include "canvas.h" #include "audioextractor.h" |