author | insilmaril |
Wed Nov 25 15:28:05 2009 +0000 (2009-11-25) | |
changeset 809 | 0a1abd218f36 |
parent 801 | 16a8ef1d82b2 |
permissions | -rw-r--r-- |
1 #ifndef TREEEDITOR_H
2 #define TREEEDITOR_H
4 #include <QTreeView>
5 #include "mysortfilterproxymodel.h"
7 class VymModel;
9 /*! \brief TreeView widget in vym to display and edit a map, based on
10 * QTreeView */
13 class TreeEditor : public QTreeView {
14 Q_OBJECT
16 public:
17 TreeEditor(VymModel *m);
18 ~TreeEditor();
19 MySortFilterProxyModel *getProxyModel();
20 QModelIndex getSelectedIndex();
22 public slots:
23 void setSortFilter (QString f);
25 private slots:
26 void cursorUp();
27 void cursorDown();
29 private:
30 VymModel *model;
31 MySortFilterProxyModel *proxyModel;
32 };
34 #endif