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

preferencesAboutTextFull
Aleksei Kanash 13 years ago
parent ecc54507dc
commit 515e26f713
  1. 17
      src/domain/UBGraphicsTextItem.cpp
  2. 2
      src/domain/UBGraphicsTextItemDelegate.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)

@ -318,8 +318,6 @@ void UBGraphicsTextItemDelegate::positionHandles()
{
mToolBarItem->hide();
}
setEditable(isEditable());
}
void UBGraphicsTextItemDelegate::ChangeTextSize(qreal factor, textChangeMode changeMode)

Loading…
Cancel
Save