Commit 2519df80 authored by Claudio Valerio's avatar Claudio Valerio

fixed issue 880

parent dabc747b
...@@ -1442,6 +1442,7 @@ UBGraphicsTextItem* UBGraphicsScene::textForObjectName(const QString& pString, c ...@@ -1442,6 +1442,7 @@ UBGraphicsTextItem* UBGraphicsScene::textForObjectName(const QString& pString, c
textItem->setObjectName(objectName); textItem->setObjectName(objectName);
QSizeF size = textItem->size(); QSizeF size = textItem->size();
textItem->setPos(QPointF(-size.width()/2.0,-size.height()/2.0)); textItem->setPos(QPointF(-size.width()/2.0,-size.height()/2.0));
textItem->setData(UBGraphicsItemData::ItemEditable,QVariant(false));
} }
textItem->setPlainText(pString); textItem->setPlainText(pString);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment