diff options
author | Arno <am@disconnect.de> | 2010-05-10 15:41:08 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-05-10 15:41:08 +0200 |
commit | 9f0caecf7875f998dc9c85d4f35f985335222d67 (patch) | |
tree | 0cd54108b7461d7944194e8e46e7b95859788230 /shemov.h | |
parent | 2038b81df36cc44b63c44313a4fe39557c850760 (diff) | |
download | SheMov-9f0caecf7875f998dc9c85d4f35f985335222d67.tar.gz SheMov-9f0caecf7875f998dc9c85d4f35f985335222d67.tar.bz2 SheMov-9f0caecf7875f998dc9c85d4f35f985335222d67.zip |
Implemented read/write settings at startup/exit
The window position and size is now written to disk on exit and read on
startup. Also, the expanded directories from the tree are saved and
restored. This means I can get rid of this ugly expand dirs on startup
thing. Never liked it very much.
Diffstat (limited to 'shemov.h')
-rw-r--r-- | shemov.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -32,6 +32,9 @@ class SheMov : public QMainWindow { SheMov(QWidget *parent = 0, Qt::WindowFlags flags = 0); ~SheMov() {}; + protected: + virtual void closeEvent(QCloseEvent *event); + private slots: void updateSelectionCount(const QItemSelection &sel, const QItemSelection &prev); void newWindowTitle(const QString &title); @@ -48,6 +51,8 @@ class SheMov : public QMainWindow { void createActions(); void createMenus(); void createExtractMenu(); + void writeSettings(); + void readSettings(); //Statusbar Items QLabel *mSelectedItems; |