mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 22:00:35 +01:00
forget file from previous comit
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3947 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -54,8 +54,8 @@ void ElementPropertiesWidget::apply()
|
|||||||
QList <QUndoCommand *> undo_list;
|
QList <QUndoCommand *> undo_list;
|
||||||
|
|
||||||
foreach (PropertiesEditorWidget *pew, m_list_editor)
|
foreach (PropertiesEditorWidget *pew, m_list_editor)
|
||||||
if (pew->associatedUndo())
|
if (QUndoCommand *undo = pew->associatedUndo())
|
||||||
undo_list << pew->associatedUndo();
|
undo_list << undo;
|
||||||
|
|
||||||
if (undo_list.isEmpty()) return;
|
if (undo_list.isEmpty()) return;
|
||||||
|
|
||||||
@@ -66,6 +66,9 @@ void ElementPropertiesWidget::apply()
|
|||||||
stack.beginMacro(str);
|
stack.beginMacro(str);
|
||||||
foreach(QUndoCommand *uc, undo_list) stack.push(uc);
|
foreach(QUndoCommand *uc, undo_list) stack.push(uc);
|
||||||
stack.endMacro();
|
stack.endMacro();
|
||||||
|
|
||||||
|
foreach(PropertiesEditorWidget *pew, m_list_editor)
|
||||||
|
pew->updateUi();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user