Mercurial > hg > sonic-visualiser
diff main/MainWindow.cpp @ 5:0a687ed1b50f
* Add Thumbwheel widget for all our zooming needs
* Use QSettings to save/restore window size and position -- precursor to
switching our preferences to QSettings as well -- wish I'd noticed it sooner
* Only suspend writes (not reads from the underlying cache objects) from the
fft caches when repainting the spectrogram -- performance should now be
significantly better
author | Chris Cannam |
---|---|
date | Thu, 03 Aug 2006 15:40:11 +0000 |
parents | 40116f709d3b |
children | c3ef80114040 |
line wrap: on
line diff
--- a/main/MainWindow.cpp Wed Aug 02 16:42:17 2006 +0000 +++ b/main/MainWindow.cpp Thu Aug 03 15:40:11 2006 +0000 @@ -74,6 +74,7 @@ #include <QFile> #include <QTextStream> #include <QProcess> +#include <QSettings> #include <iostream> #include <cstdio> @@ -2115,6 +2116,12 @@ return; } + QSettings settings; + settings.beginGroup("MainWindow"); + settings.setValue("size", size()); + settings.setValue("position", pos()); + settings.endGroup(); + e->accept(); return; }