summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSami Merilä <sami.merila@nokia.com>2009-04-29 12:46:12 (GMT)
committerSami Merilä <sami.merila@nokia.com>2009-04-29 12:46:12 (GMT)
commitd333404c72aa6c707cf389899999f2247454b824 (patch)
treebf5e22fdc8271d0917f10b9cd0f71083be216937
parent37beda2303649664c71c2cc32292d5b54547032b (diff)
downloadQt-d333404c72aa6c707cf389899999f2247454b824.zip
Qt-d333404c72aa6c707cf389899999f2247454b824.tar.gz
Qt-d333404c72aa6c707cf389899999f2247454b824.tar.bz2
S60Style: Use title font for GroupBox title.
-rw-r--r--src/gui/styles/qs60style.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp
index 5747ceb..20eaf16 100644
--- a/src/gui/styles/qs60style.cpp
+++ b/src/gui/styles/qs60style.cpp
@@ -986,6 +986,11 @@ void QS60Style::drawComplexControl(ComplexControl control, const QStyleOptionCom
if ((groupBox->subControls & QStyle::SC_GroupBoxLabel) && !groupBox->text.isEmpty()) {
const QColor textColor = groupBox->textColor;
painter->save();
+
+ const QFont suggestedFont = d->s60Font(
+ QS60StyleEnums::FC_Title, painter->font().pointSizeF());
+ painter->setFont(suggestedFont);
+
if (textColor.isValid())
painter->setPen(textColor);
int alignment = int(groupBox->textAlignment);