diff --git a/src/domain/UBGraphicsTextItem.cpp b/src/domain/UBGraphicsTextItem.cpp index 75a676c4..80625045 100644 --- a/src/domain/UBGraphicsTextItem.cpp +++ b/src/domain/UBGraphicsTextItem.cpp @@ -73,23 +73,6 @@ UBGraphicsTextItem::~UBGraphicsTextItem() QVariant UBGraphicsTextItem::itemChange(GraphicsItemChange change, const QVariant &value) { - if (QGraphicsItem::ItemSelectedChange == change) - { - bool selected = value.toBool(); - - if (selected) - { - setTextInteractionFlags(Qt::TextEditorInteraction); - } - else - { - QTextCursor tc = textCursor(); - tc.clearSelection(); - setTextCursor(tc); - setTextInteractionFlags(Qt::NoTextInteraction); - } - } - QVariant newValue = value; if(mDelegate) diff --git a/src/domain/UBGraphicsTextItemDelegate.cpp b/src/domain/UBGraphicsTextItemDelegate.cpp index e160869c..f9220302 100644 --- a/src/domain/UBGraphicsTextItemDelegate.cpp +++ b/src/domain/UBGraphicsTextItemDelegate.cpp @@ -318,8 +318,6 @@ void UBGraphicsTextItemDelegate::positionHandles() { mToolBarItem->hide(); } - - setEditable(isEditable()); } void UBGraphicsTextItemDelegate::ChangeTextSize(qreal factor, textChangeMode changeMode)