mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 01:10:53 +01:00
xmlElementCollection : collection can add new item.
elementsCollectionModel : Up to date the content when a new item is added to the embedded collection of a project. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4312 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
class ElementCollectionItem;
|
||||
class QETProject;
|
||||
class QList<QETProject>;
|
||||
class XmlProjectElementCollectionItem;
|
||||
|
||||
/**
|
||||
* @brief The ElementsCollectionModel class
|
||||
@@ -58,6 +59,10 @@ class ElementsCollectionModel : public QAbstractItemModel
|
||||
bool removeProject(QETProject *project);
|
||||
QList<QETProject *> project() const;
|
||||
|
||||
private:
|
||||
XmlProjectElementCollectionItem *itemForProject(QETProject *project);
|
||||
void elementIntegratedToCollection (QETProject *project, QString path);
|
||||
|
||||
private:
|
||||
ElementCollectionItem *m_root_item;
|
||||
QList <QETProject *> m_project_list;
|
||||
|
||||
Reference in New Issue
Block a user