From b8daec441f23a848896e1c5ccab35b122c075266 Mon Sep 17 00:00:00 2001 From: Laurent Trinques Date: Fri, 7 Aug 2020 15:32:24 +0200 Subject: [PATCH] Fix bug 199: ElementEditor parText changes in the drawing area are not reflexted in the information area --- sources/editor/graphicspart/parttext.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sources/editor/graphicspart/parttext.cpp b/sources/editor/graphicspart/parttext.cpp index 9e1b9b5c6..e81a15427 100644 --- a/sources/editor/graphicspart/parttext.cpp +++ b/sources/editor/graphicspart/parttext.cpp @@ -172,12 +172,8 @@ void PartText::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *e) { @param value Valeur numerique relative au changement */ QVariant PartText::itemChange(GraphicsItemChange change, const QVariant &value) { - if (change == QGraphicsItem::ItemPositionHasChanged || change == QGraphicsItem::ItemSceneHasChanged) { - updateCurrentPartEditor(); - } else if (change == QGraphicsItem::ItemSelectedHasChanged) { - if (value.toBool() == true) { - updateCurrentPartEditor(); - } + if (change == QGraphicsItem::ItemPositionHasChanged || change == QGraphicsItem::ItemSceneHasChanged || change == QGraphicsItem::ItemSelectedHasChanged) { + updateCurrentPartEditor(); } return(QGraphicsTextItem::itemChange(change, value)); }