mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-24 03:10:52 +01:00
Element editor : clear the event interface befor save, to avoid the save of the primitive owned by the interface.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4996 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -53,7 +53,7 @@ class QETElementEditor : public QETMainWindow {
|
||||
/// view widget for the editing scene
|
||||
ElementView *ce_view;
|
||||
/// editing scene
|
||||
ElementScene *ce_scene;
|
||||
ElementScene *m_elmt_scene;
|
||||
/// container for widgets dedicated to primitive edition
|
||||
QDockWidget *tools_dock;
|
||||
/// Stack of widgets for tools_dock
|
||||
@@ -164,7 +164,7 @@ class QETElementEditor : public QETMainWindow {
|
||||
@param nameslist the new list of names for the currently edited element
|
||||
*/
|
||||
inline void QETElementEditor::setNames(const NamesList &nameslist) {
|
||||
ce_scene -> setNames(nameslist);
|
||||
m_elmt_scene -> setNames(nameslist);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -185,7 +185,7 @@ inline QString QETElementEditor::fileName() const {
|
||||
@return the editing scene
|
||||
*/
|
||||
inline ElementScene *QETElementEditor::elementScene() const {
|
||||
return(ce_scene);
|
||||
return(m_elmt_scene);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user