mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
After editing an element (opened from the new element panel by double clic, or context menu),
new element panel update the content of the item who represent the edited element (pixmap and name) git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4399 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "elementscategory.h"
|
||||
#include "xmlprojectelementcollectionitem.h"
|
||||
#include "qetproject.h"
|
||||
#include "qetelementeditor.h"
|
||||
|
||||
#include <QVBoxLayout>
|
||||
#include <QTreeView>
|
||||
@@ -244,7 +245,15 @@ void ElementsCollectionWidget::editElement()
|
||||
(eci->type() != FileElementCollectionItem::Type)) return;
|
||||
|
||||
ElementsLocation location(static_cast<FileElementCollectionItem*>(eci)->collectionPath());
|
||||
QETApp::instance()->openElementLocations(QList<ElementsLocation>() << location);
|
||||
|
||||
QETApp *app = QETApp::instance();
|
||||
app->openElementLocations(QList<ElementsLocation>() << location);
|
||||
|
||||
foreach (QETElementEditor *element_editor, app->elementEditors())
|
||||
{
|
||||
if (element_editor->isEditing(location))
|
||||
connect(element_editor, &QETElementEditor::destroyed, eci, &ElementCollectionItem::clearData);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user