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