treeeditor.h
author insilmaril
Fri, 02 Oct 2009 14:31:03 +0000
changeset 803 338ebdc9b947
parent 801 16a8ef1d82b2
child 804 14f2b1b15242
permissions -rw-r--r--
Re-added support for Bugzilla URL and fixed missing autocolor of new branch
     1 #ifndef TREEEDITOR_H
     2 #define TREEEDITOR_H
     3 
     4 #include <QTreeView>
     5 #include <QSortFilterProxyModel>
     6 
     7 class VymModel;
     8 
     9 /*! \brief TreeView widget in vym to display and edit a map, based on
    10  * QTreeView */
    11 
    12 
    13 class TreeEditor : public QTreeView {	
    14     Q_OBJECT
    15 
    16 public:
    17     TreeEditor(VymModel *m);
    18 	~TreeEditor();
    19 	QSortFilterProxyModel *getProxyModel();
    20 
    21 public slots:
    22 	void setSortFilter (QString f);
    23 
    24 private slots:
    25 	void cursorUp();
    26 	void cursorDown();
    27 
    28 private:
    29 	VymModel *model;
    30 	QSortFilterProxyModel *proxyModel;
    31 };
    32 
    33 #endif
    34