From 609e8d6f4ae179243d6f258205701561d94500f5 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 5 Dec 2010 08:29:05 +0100 Subject: Selectable columns in FilesTreeView Made columns shown in FilesTreeView selectable. Also, the order of columns is saved and restored. This was a difficult one. I even had to make a debug build of qt. But I fixed a serious bug in FilesTreeModel::modeName: don't access the Hash if modeName == -1. --- filestreewidget.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'filestreewidget.h') diff --git a/filestreewidget.h b/filestreewidget.h index 7c5243d..ae8e27b 100644 --- a/filestreewidget.h +++ b/filestreewidget.h @@ -63,9 +63,13 @@ class FilesTreeView : public QTreeView { Q_OBJECT public: explicit FilesTreeView(QWidget *parent = 0); + virtual void setModel(QAbstractItemModel *model); public slots: void readConfig(); + void readHeaderConfig(); + void writeHeaderConfig(); + void toggleHeader(QObject *action); protected: virtual void contextMenuEvent(QContextMenuEvent *event); -- cgit v1.2.3-70-g09d2