mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-31 16:50:52 +01:00
New element panel can read the embedded collection of project (only at opening, other fonctionnality isn't created yet)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4287 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -21,10 +21,12 @@
|
||||
#include <QAbstractItemModel>
|
||||
|
||||
class ElementCollectionItem;
|
||||
class QETProject;
|
||||
class QList<QETProject>;
|
||||
|
||||
/**
|
||||
* @brief The ElementsCollectionModel class
|
||||
* Provide a data model for collection of elements.
|
||||
* Provide a data model for co;llection of elements.
|
||||
*/
|
||||
class ElementsCollectionModel : public QAbstractItemModel
|
||||
{
|
||||
@@ -52,9 +54,13 @@ class ElementsCollectionModel : public QAbstractItemModel
|
||||
|
||||
void addCommonCollection();
|
||||
void addCustomCollection();
|
||||
bool addProject(QETProject *project);
|
||||
bool removeProject(QETProject *project);
|
||||
QList<QETProject *> project() const;
|
||||
|
||||
private:
|
||||
ElementCollectionItem *m_root_item;
|
||||
QList <QETProject *> m_project_list;
|
||||
};
|
||||
|
||||
#endif // ELEMENTSCOLLECTIONMODEL_H
|
||||
|
||||
Reference in New Issue
Block a user