the QGraphicsTextItem should be focused in order to view the cursor

preferencesAboutTextFull
Claudio Valerio 10 years ago
parent e3c3509deb
commit 620e9f7748
  1. 1
      src/domain/UBGraphicsTextItemDelegate.cpp
  2. 1
      src/domain/UBGraphicsTextItemDelegate.h

@ -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;

Loading…
Cancel
Save