New Element Wizard : tree view only display directory

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4484 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2016-05-15 14:46:01 +00:00
parent 3261809227
commit 8dd3e7394a
7 changed files with 168 additions and 38 deletions

View File

@@ -19,6 +19,7 @@
#define ELEMENTSCOLLECTIONMODEL_H
#include <QAbstractItemModel>
#include "elementslocation.h"
class ElementCollectionItem;
class QETProject;
@@ -58,6 +59,8 @@ class ElementsCollectionModel : public QAbstractItemModel
bool addProject(QETProject *project);
bool removeProject(QETProject *project);
QList<QETProject *> project() const;
QModelIndex index(const ElementsLocation &location) const;
void hideElement();
private:
XmlProjectElementCollectionItem *itemForProject(QETProject *project);
@@ -71,6 +74,7 @@ class ElementsCollectionModel : public QAbstractItemModel
ElementCollectionItem *m_root_item;
QList <QETProject *> m_project_list;
QModelIndex m_parent_at_drop;
bool m_hide_element = false;
};
#endif // ELEMENTSCOLLECTIONMODEL_H