From 71746cf34a87bd3f96e0616e4586809e21ccfe9f Mon Sep 17 00:00:00 2001 From: shibakaneki Date: Mon, 30 May 2011 13:50:20 +0200 Subject: [PATCH] Fixed issue Sankore-32 --- src/board/UBBoardView.cpp | 1 - src/board/UBBoardView.h | 1 - src/domain/UBGraphicsTextItem.cpp | 1 + 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/board/UBBoardView.cpp b/src/board/UBBoardView.cpp index 712d89b9..ea51f01b 100644 --- a/src/board/UBBoardView.cpp +++ b/src/board/UBBoardView.cpp @@ -638,7 +638,6 @@ UBBoardView::drawItems (QPainter *painter, int numItems, QGraphicsItem* items[], const QStyleOptionGraphicsItem options[]) { - if (!mFilterZIndex) { QGraphicsView::drawItems (painter, numItems, items, options); diff --git a/src/board/UBBoardView.h b/src/board/UBBoardView.h index 6549e677..84713298 100644 --- a/src/board/UBBoardView.h +++ b/src/board/UBBoardView.h @@ -9,7 +9,6 @@ #define UBBOARDVIEW_H_ #include - #include "core/UB.h" class UBBoardController; diff --git a/src/domain/UBGraphicsTextItem.cpp b/src/domain/UBGraphicsTextItem.cpp index 18991ad3..182bea59 100644 --- a/src/domain/UBGraphicsTextItem.cpp +++ b/src/domain/UBGraphicsTextItem.cpp @@ -256,6 +256,7 @@ void UBGraphicsTextItem::setTextHeight(qreal height) qreal minHeight = fm.height() + document()->documentMargin() * 2; mTextHeight = qMax(minHeight, height); update(); + setFocus(); }