From 34294c838d1b3876aad2979ec206f4f22b32167b Mon Sep 17 00:00:00 2001 From: xavier Date: Fri, 1 Jan 2010 21:31:57 +0000 Subject: [PATCH] Correction de la revision 826 git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@827 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/editor/parttextfield.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/editor/parttextfield.cpp b/sources/editor/parttextfield.cpp index f2ff7bf53..b0bb88879 100644 --- a/sources/editor/parttextfield.cpp +++ b/sources/editor/parttextfield.cpp @@ -285,12 +285,12 @@ QVariant PartTextField::property(const QString &property) { @param value Valeur numerique relative au changement */ QVariant PartTextField::itemChange(GraphicsItemChange change, const QVariant &value) { - if (change == QGraphicsItem::ItemPositionHasChanged) { + if (change == QGraphicsItem::ItemPositionHasChanged || change == QGraphicsItem::ItemSceneHasChanged) { // memorise la nouvelle position "officielle" du champ de texte // cette information servira a le recentrer en cas d'ajout / retrait de lignes known_position_ = pos(); infos -> updateForm(); - } else if (change == QGraphicsItem::ItemSelectedHasChanged || change == QGraphicsItem::ItemSceneHasChanged) { + } else if (change == QGraphicsItem::ItemSelectedHasChanged) { if (value.toBool() == true) { infos -> updateForm(); }