diff options
author | Arno <am@disconnect.de> | 2012-10-20 07:46:11 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2012-10-20 07:46:11 +0200 |
commit | a4054f1c7b38e5996081efd7583c06ebf7758e61 (patch) | |
tree | 09c7e95a300462a384fbb29a3e619bcf0e270086 /pictureswidget.h | |
parent | 1a4053284a8847edbabd5b2f7dd4ef4cd93fd5d7 (diff) | |
download | SheMov-a4054f1c7b38e5996081efd7583c06ebf7758e61.tar.gz SheMov-a4054f1c7b38e5996081efd7583c06ebf7758e61.tar.bz2 SheMov-a4054f1c7b38e5996081efd7583c06ebf7758e61.zip |
Make headers in PictureView configurable
Save state of QHeaderView and restore it on startup. Maybe it's time for
a SmTreeView Class implementing these generic functions...
Diffstat (limited to 'pictureswidget.h')
-rw-r--r-- | pictureswidget.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pictureswidget.h b/pictureswidget.h index 9618e6e..4d8db73 100644 --- a/pictureswidget.h +++ b/pictureswidget.h @@ -28,6 +28,7 @@ class QEvent; class HoverWindow; class PictureViewer2; class QAction; +class QActionGroup; struct MappingData; class PicturesWidget : public QWidget { @@ -69,6 +70,7 @@ class PictureView : public QTreeView { QSortFilterProxyModel *proxy() { return mProxy; } void setPV(PictureViewer2 *pv) { mPV = pv; } PictureViewer2 *PV() { return mPV; } + void setHeaderGroup(QActionGroup *ag) { mHeaderGroup = ag; } public slots: void mappingChanged(int pMapId); @@ -77,6 +79,9 @@ class PictureView : public QTreeView { void setPVData(int replace = false); void setPVAll(); void setHoverWinVisible(bool visible) const; + void toggleHeader(QObject *action); + void readHeaderConfig(); + void writeHeaderConfig(); protected: virtual void hideEvent(QHideEvent *); @@ -101,6 +106,7 @@ class PictureView : public QTreeView { QList<int> mFilesMappings; PictureViewer2 *mPV; MappingTreeModel *mMappingTreeModel; + QActionGroup *mHeaderGroup; }; #endif // PICTURESWIDGET_H |