diff options
author | Prasanth Ullattil <prasanth.ulattil@nokia.com> | 2009-10-28 13:47:28 (GMT) |
---|---|---|
committer | Prasanth Ullattil <prasanth.ulattil@nokia.com> | 2009-10-28 14:21:32 (GMT) |
commit | e4606e2d6491bd7020e8bfb12665c3addc24b7e3 (patch) | |
tree | fe66868c4998d7d1cba3c90c8d1ca6f0936c3510 /src/gui | |
parent | 4b3ef85b499d9ec508acdf83d250e022161defbb (diff) | |
download | Qt-e4606e2d6491bd7020e8bfb12665c3addc24b7e3.zip Qt-e4606e2d6491bd7020e8bfb12665c3addc24b7e3.tar.gz Qt-e4606e2d6491bd7020e8bfb12665c3addc24b7e3.tar.bz2 |
Wrong font used when moving a tab in document mode.
Dragging is handled by a seperate window in document mode. The currently
selected tabbar item is drawn to a pixmap for this purpose. That
paintdevice was not initialized correctly. (e.g. font)
Reviewed-by: Trond
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/widgets/qtabbar.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/widgets/qtabbar.cpp b/src/gui/widgets/qtabbar.cpp index 4dffbdc..3935c55 100644 --- a/src/gui/widgets/qtabbar.cpp +++ b/src/gui/widgets/qtabbar.cpp @@ -1812,6 +1812,7 @@ void QTabBarPrivate::setupMovableTab() QPixmap grabImage(grabRect.size()); grabImage.fill(Qt::transparent); QStylePainter p(&grabImage, q); + p.initFrom(q); QStyleOptionTabV3 tab; q->initStyleOption(&tab, pressedIndex); |