summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qcommonstyle.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-05-15 04:09:06 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-05-15 04:09:06 (GMT)
commit49d1dd6083074a6225e6784fd185c34b76ed5648 (patch)
treefd3029d7fc0e18888c52e9303313fd9be169c667 /src/gui/styles/qcommonstyle.cpp
parentf9fa633257f856f03b6f8323506d1695e1705e5f (diff)
parente3fcf351dee44b4f9457a6abbed76d37fc0fbe67 (diff)
downloadQt-49d1dd6083074a6225e6784fd185c34b76ed5648.zip
Qt-49d1dd6083074a6225e6784fd185c34b76ed5648.tar.gz
Qt-49d1dd6083074a6225e6784fd185c34b76ed5648.tar.bz2
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into kinetic-declarativeui
Conflicts: configure.exe src/gui/graphicsview/qgraphicsscene.cpp
Diffstat (limited to 'src/gui/styles/qcommonstyle.cpp')
-rw-r--r--src/gui/styles/qcommonstyle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/styles/qcommonstyle.cpp b/src/gui/styles/qcommonstyle.cpp
index c0899f8..6972803 100644
--- a/src/gui/styles/qcommonstyle.cpp
+++ b/src/gui/styles/qcommonstyle.cpp
@@ -1664,6 +1664,7 @@ void QCommonStyle::drawControl(ControlElement element, const QStyleOption *opt,
if (!styleHint(SH_UnderlineShortcut, opt, widget))
alignment |= Qt::TextHideMnemonic;
rect.translate(shiftX, shiftY);
+ p->setFont(toolbutton->font);
drawItemText(p, rect, alignment, toolbutton->palette,
opt->state & State_Enabled, toolbutton->text,
QPalette::ButtonText);