diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2014-04-03 10:49:46 +0200 |
---|---|---|
committer | Jonas Suhr Christensen <jsc@umbraculum.org> | 2014-04-03 10:49:46 +0200 |
commit | 87d4aaf7e67146f224d605eeb10d90813048c12c (patch) | |
tree | de9fd40eff2dde4ff71ced573f8522cf93e594b2 /dgedit/mainwindow.cc | |
parent | fe7be822dac7c1d06f836d18b63b7781b1146395 (diff) |
Using config.ini to store QSettings rather than system + saving/reloading exportp.
Diffstat (limited to 'dgedit/mainwindow.cc')
-rw-r--r-- | dgedit/mainwindow.cc | 7 |
1 files changed, 5 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(); } |