Mercurial > hg > sonic-visualiser
comparison 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 |
comparison
equal
deleted
inserted
replaced
4:a8b4a6efefff | 5:0a687ed1b50f |
---|---|
72 #include <QStatusBar> | 72 #include <QStatusBar> |
73 #include <QTreeView> | 73 #include <QTreeView> |
74 #include <QFile> | 74 #include <QFile> |
75 #include <QTextStream> | 75 #include <QTextStream> |
76 #include <QProcess> | 76 #include <QProcess> |
77 #include <QSettings> | |
77 | 78 |
78 #include <iostream> | 79 #include <iostream> |
79 #include <cstdio> | 80 #include <cstdio> |
80 #include <errno.h> | 81 #include <errno.h> |
81 | 82 |
2113 if (!checkSaveModified()) { | 2114 if (!checkSaveModified()) { |
2114 e->ignore(); | 2115 e->ignore(); |
2115 return; | 2116 return; |
2116 } | 2117 } |
2117 | 2118 |
2119 QSettings settings; | |
2120 settings.beginGroup("MainWindow"); | |
2121 settings.setValue("size", size()); | |
2122 settings.setValue("position", pos()); | |
2123 settings.endGroup(); | |
2124 | |
2118 e->accept(); | 2125 e->accept(); |
2119 return; | 2126 return; |
2120 } | 2127 } |
2121 | 2128 |
2122 bool | 2129 bool |