mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-09 07:09:59 +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:
@@ -43,6 +43,7 @@ class ElementCollectionItem
|
||||
bool removeChild (int row, int count);
|
||||
bool insertChild (int row, ElementCollectionItem *item);
|
||||
ElementCollectionItem *child(int row);
|
||||
ElementCollectionItem *childWithCollectionName(QString name) const;
|
||||
int childCount() const;
|
||||
int columnCount() const;
|
||||
virtual QVariant data(int column, int role);
|
||||
@@ -53,11 +54,16 @@ class ElementCollectionItem
|
||||
ElementCollectionItem *parent();
|
||||
int row() const;
|
||||
virtual QString name();
|
||||
virtual QString collectionName() const;
|
||||
|
||||
virtual bool isDir() const;
|
||||
virtual bool isElement() const;
|
||||
virtual bool isValid() const;
|
||||
virtual QList <ElementCollectionItem *> items() const;
|
||||
QList<ElementCollectionItem *> elementsChild() const;
|
||||
QList<ElementCollectionItem *> directoriesChild() const;
|
||||
int indexOfChild(ElementCollectionItem *child) const;
|
||||
|
||||
|
||||
virtual bool canRemoveContent();
|
||||
virtual bool removeContent();
|
||||
|
||||
Reference in New Issue
Block a user