summaryrefslogtreecommitdiffstats
path: root/filesystemwidget.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-05-10 15:41:08 +0200
committerArno <am@disconnect.de>2010-05-10 15:41:08 +0200
commit9f0caecf7875f998dc9c85d4f35f985335222d67 (patch)
tree0cd54108b7461d7944194e8e46e7b95859788230 /filesystemwidget.h
parent2038b81df36cc44b63c44313a4fe39557c850760 (diff)
downloadSheMov-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 'filesystemwidget.h')
-rw-r--r--filesystemwidget.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/filesystemwidget.h b/filesystemwidget.h
index 0191065..6e8523c 100644
--- a/filesystemwidget.h
+++ b/filesystemwidget.h
@@ -54,16 +54,20 @@ class FilesystemWidget : public QWidget {
void archiveFiles();
void refreshDir(const QString &dir);
void playSelected();
+ void readSettings();
+ void writeSettings();
private slots:
void doRenameFile();
+ void dirExpanded(const QModelIndex &idx);
+ void dirCollapsed(const QModelIndex &idx);
private:
void setWindowTitle(const QString &dir);
void deleteRecursive(const QFileInfo &start);
void copyRecursive(const QFileInfo &start, const QString &destdir);
- void expandParents(const QModelIndex &idx);
QStringList selectedFiles();
+ QStringList mExpandedDirs;
QAction *action(QWidget *widget, const QVariant &data) const;
QDirModel *mModel;
QTreeView *mDirView;