Commit 620e9f77 authored by Claudio Valerio's avatar Claudio Valerio

the QGraphicsTextItem should be focused in order to view the cursor

parent e3c3509d
......@@ -392,6 +392,7 @@ void UBGraphicsTextItemDelegate::alignButtonProcess()
delegated()->setTextCursor(cur);
cur.setBlockFormat(fmt);
delegated()->setFocus();
}
qDebug() << "sender process" << sndr;
......
......@@ -138,7 +138,6 @@ class UBGraphicsTextItemDelegate : public UBGraphicsItemDelegate
DelegateButton* mColorButton;
DelegateButton* mDecreaseSizeButton;
DelegateButton* mIncreaseSizeButton;
DelegateButton* mAlignButton;
int mLastFontPixelSize;
......
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