|
|
|
@ -246,9 +246,6 @@ void UBGraphicsTextItem::keyReleaseEvent(QKeyEvent *event) |
|
|
|
|
|
|
|
|
|
void UBGraphicsTextItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
|
|
|
|
{ |
|
|
|
|
QColor color = UBSettings::settings()->isDarkBackground() ? mColorOnDarkBackground : mColorOnLightBackground; |
|
|
|
|
setDefaultTextColor(color); |
|
|
|
|
|
|
|
|
|
// Never draw the rubber band, we draw our custom selection with the DelegateFrame
|
|
|
|
|
QStyleOptionGraphicsItem styleOption = QStyleOptionGraphicsItem(*option); |
|
|
|
|
styleOption.state &= ~QStyle::State_Selected; |
|
|
|
|