diff options
author | Arno <am@disconnect.de> | 2013-04-05 17:01:57 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-04-05 17:01:57 +0200 |
commit | 0f4f0d5860e4a261f37ae6f294c154c3009c4562 (patch) | |
tree | 3cce6fb18017c6f01190af9e83c70ad0fc65db1a /fileview.h | |
parent | 1bcbb69e31090cf71e913419299b52dd4d094bef (diff) | |
download | SheMov-0f4f0d5860e4a261f37ae6f294c154c3009c4562.tar.gz SheMov-0f4f0d5860e4a261f37ae6f294c154c3009c4562.tar.bz2 SheMov-0f4f0d5860e4a261f37ae6f294c154c3009c4562.zip |
Make FilesystemWidget headers configurable
Save headerView on exit, create a Menu for selecting headers and read
headerConfig on startup.
Diffstat (limited to 'fileview.h')
-rw-r--r-- | fileview.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -22,6 +22,7 @@ class QEvent; class QFileInfo; class FilesystemFileProxy; class SmDirModel; +class QActionGroup; class FileView : public QTreeView { Q_OBJECT @@ -30,6 +31,7 @@ class FileView : public QTreeView { ~FileView() {} virtual void setModel(QAbstractItemModel *model); const QVariant duration() const; + void setHeaderGroup(QActionGroup *ag) { mHeaderGroup = ag; } signals: void upDir(); @@ -46,9 +48,13 @@ class FileView : public QTreeView { void unmarkFiles(); void createFolder(); void readConfig(); + void writeConfig(); void resizeColumns(int columns); void saveSelection(); void restoreSelection(); + void readHeaderConfig(); + void writeHeaderConfig(); + void toggleHeader(QObject *action); protected slots: virtual void closeEditor(QWidget *editor, QAbstractItemDelegate::EndEditHint hint); @@ -78,6 +84,7 @@ class FileView : public QTreeView { FilesystemFileProxy *mProxy; SmDirModel *mModel; Helper::Duration mDuration; + QActionGroup *mHeaderGroup; }; #endif |