diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-02-16 09:12:11 (GMT) |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-02-16 09:12:11 (GMT) |
commit | 96be992ccdc7a9aaf02672234be7bd341be105e7 (patch) | |
tree | 34366cd55804497d44b9ee1770ce8fcd16da9fa1 /tools/designer/src/lib/shared/qdesigner_formwindowcommand_p.h | |
parent | d813575790f94fc4f98abcb45ad47248cdd8b2d8 (diff) | |
download | Qt-96be992ccdc7a9aaf02672234be7bd341be105e7.zip Qt-96be992ccdc7a9aaf02672234be7bd341be105e7.tar.gz Qt-96be992ccdc7a9aaf02672234be7bd341be105e7.tar.bz2 |
Designer:Fix undo crash caused by special handling of key move.
Remove special handling and storing of commands. Customize
SetPropertyCommand such that it is able to perform a transformation
of the new value., thus, the same (relative) distance can be used
on all widgets and the normal command merging mechanism can be used
to merge subsequent moves correctly.
Task-number: QTBUG-8213
Diffstat (limited to 'tools/designer/src/lib/shared/qdesigner_formwindowcommand_p.h')
-rw-r--r-- | tools/designer/src/lib/shared/qdesigner_formwindowcommand_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/designer/src/lib/shared/qdesigner_formwindowcommand_p.h b/tools/designer/src/lib/shared/qdesigner_formwindowcommand_p.h index d8cd018..d73d70c 100644 --- a/tools/designer/src/lib/shared/qdesigner_formwindowcommand_p.h +++ b/tools/designer/src/lib/shared/qdesigner_formwindowcommand_p.h @@ -70,7 +70,9 @@ class QDESIGNER_SHARED_EXPORT QDesignerFormWindowCommand: public QUndoCommand { public: - QDesignerFormWindowCommand(const QString &description, QDesignerFormWindowInterface *formWindow); + QDesignerFormWindowCommand(const QString &description, + QDesignerFormWindowInterface *formWindow, + QUndoCommand *parent = 0); virtual void undo(); virtual void redo(); |