Commit 515e26f7 authored by Aleksei Kanash's avatar Aleksei Kanash

Addition to Sankore-793. Changed behavior of text items. It doesn't manages self flags.

parent ecc54507
......@@ -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)
......
......@@ -318,8 +318,6 @@ void UBGraphicsTextItemDelegate::positionHandles()
{
mToolBarItem->hide();
}
setEditable(isEditable());
}
void UBGraphicsTextItemDelegate::ChangeTextSize(qreal factor, textChangeMode changeMode)
......
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