mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-06 13:40:52 +01:00
Improve the way how an element is updated in the new element panel.
Now Qet only use the new embbeded collection (XmlElementCollection). No need to reload the old element panel for add a new element created by the new element panel Elements are always imported to the embbeded collection of a project git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4468 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -47,6 +47,7 @@ class ElementCollectionItem : public QObject
|
||||
ElementCollectionItem *child(int row) const;
|
||||
ElementCollectionItem *childWithCollectionName(QString name) const;
|
||||
ElementCollectionItem *lastItemForPath(const QString &path, QString &newt_item);
|
||||
ElementCollectionItem *itemAtPath(const QString &path);
|
||||
int rowForInsertItem(const QString &collection_name);
|
||||
virtual void insertNewItem(const QString &collection_name);
|
||||
int childCount() const;
|
||||
@@ -72,10 +73,6 @@ class ElementCollectionItem : public QObject
|
||||
int indexOfChild(ElementCollectionItem *child) const;
|
||||
void setBackgroundColor(Qt::GlobalColor color, bool show);
|
||||
|
||||
|
||||
virtual bool canRemoveContent();
|
||||
virtual bool removeContent();
|
||||
|
||||
signals:
|
||||
void beginInsertRows(ElementCollectionItem *parent, int first, int last);
|
||||
void endInsertRows();
|
||||
|
||||
Reference in New Issue
Block a user