mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user