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:
blacksun
2017-07-31 17:41:48 +00:00
parent ecfb49c227
commit fbae3da33f
4 changed files with 260 additions and 236 deletions

View File

@@ -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