treeeditor.h
author insilmaril
Mon, 15 Mar 2010 11:49:42 +0000
changeset 835 31841b366d5e
parent 804 14f2b1b15242
permissions -rw-r--r--
Fixes for autoLayout (later)
     1 #ifndef TREEEDITOR_H
     2 #define TREEEDITOR_H
     3 
     4 #include <QTreeView>
     5 #include "mysortfilterproxymodel.h"
     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 	MySortFilterProxyModel *getProxyModel();
    20 	QModelIndex getSelectedIndex();
    21 
    22 public slots:
    23 	void setSortFilter (QString f);
    24 
    25 private slots:
    26 	void cursorUp();
    27 	void cursorDown();
    28 
    29 private:
    30 	VymModel *model;
    31 	MySortFilterProxyModel *proxyModel;
    32 };
    33 
    34 #endif
    35