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
This commit is contained in:
xavier
2010-01-01 21:31:57 +00:00
parent 8079ab0caa
commit 34294c838d

View File

@@ -285,12 +285,12 @@ QVariant PartTextField::property(const QString &property) {
@param value Valeur numerique relative au changement @param value Valeur numerique relative au changement
*/ */
QVariant PartTextField::itemChange(GraphicsItemChange change, const QVariant &value) { 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 // memorise la nouvelle position "officielle" du champ de texte
// cette information servira a le recentrer en cas d'ajout / retrait de lignes // cette information servira a le recentrer en cas d'ajout / retrait de lignes
known_position_ = pos(); known_position_ = pos();
infos -> updateForm(); infos -> updateForm();
} else if (change == QGraphicsItem::ItemSelectedHasChanged || change == QGraphicsItem::ItemSceneHasChanged) { } else if (change == QGraphicsItem::ItemSelectedHasChanged) {
if (value.toBool() == true) { if (value.toBool() == true) {
infos -> updateForm(); infos -> updateForm();
} }