summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication_win.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2009-10-22 10:34:44 +0200
committerJoerg Bornemann <joerg.bornemann@nokia.com>2009-10-22 10:34:44 +0200
commit5f8978a02bde7f84dc48b63d3722b925730790f0 (patch)
tree8aa86240643e5d8f7f523f1a5f0e2d567367f4fa /src/gui/kernel/qapplication_win.cpp
parent58574ea3590fbb28da5be73b983d83f0a8824d00 (diff)
move default QAbstractButton font setup on Win mobile to QApplication
The original approach of modifying the font for QAbstractButtons in QWindowsMobileStyle::polish broke the autotest tst_qstylesheetstyle::fontPropagation. Reviewed-by: thartman
Diffstat (limited to 'src/gui/kernel/qapplication_win.cpp')
-rw-r--r--src/gui/kernel/qapplication_win.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_win.cpp b/src/gui/kernel/qapplication_win.cpp
index 1babb695e2..5a4f4e63e2 100644
--- a/src/gui/kernel/qapplication_win.cpp
+++ b/src/gui/kernel/qapplication_win.cpp
@@ -624,6 +624,8 @@ static void qt_set_windows_font_resources()
if (qt_wince_is_mobile()) {
smallerFont.setPointSize(systemFont.pointSize()-1);
QApplication::setFont(smallerFont, "QTabBar");
+ smallerFont.setBold(true);
+ QApplication::setFont(smallerFont, "QAbstractButton");
}
#endif// Q_OS_WINCE
}