summaryrefslogtreecommitdiff
path: root/src/gui/widgets/qtabbar.cpp
diff options
context:
space:
mode:
authorPrasanth Ullattil <prasanth.ulattil@nokia.com>2009-10-28 14:47:28 +0100
committerPrasanth Ullattil <prasanth.ulattil@nokia.com>2009-10-28 15:21:32 +0100
commite4606e2d6491bd7020e8bfb12665c3addc24b7e3 (patch)
treefe66868c4998d7d1cba3c90c8d1ca6f0936c3510 /src/gui/widgets/qtabbar.cpp
parent4b3ef85b499d9ec508acdf83d250e022161defbb (diff)
downloadqt4-tools-e4606e2d6491bd7020e8bfb12665c3addc24b7e3.tar.gz
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/widgets/qtabbar.cpp')
-rw-r--r--src/gui/widgets/qtabbar.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/widgets/qtabbar.cpp b/src/gui/widgets/qtabbar.cpp
index 4dffbdcc5d..3935c55626 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);