summaryrefslogtreecommitdiffstats
path: root/tests/auto/qmdisubwindow
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-09-07 09:30:36 (GMT)
committerGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-09-07 09:34:44 (GMT)
commit6b7330ee075a62138f005492a6448059106554af (patch)
tree8af1a8116dcc34720865c25d8552b0c7de8ceded /tests/auto/qmdisubwindow
parentd4b695977171177f5f302b845273039aebd618ac (diff)
downloadQt-6b7330ee075a62138f005492a6448059106554af.zip
Qt-6b7330ee075a62138f005492a6448059106554af.tar.gz
Qt-6b7330ee075a62138f005492a6448059106554af.tar.bz2
Fixed qsubmdiarea setFont test.
The compared fonts didn't have the same styleHint because it's resolved setting the font. Reviewed-by: Olivier
Diffstat (limited to 'tests/auto/qmdisubwindow')
-rw-r--r--tests/auto/qmdisubwindow/tst_qmdisubwindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/qmdisubwindow/tst_qmdisubwindow.cpp b/tests/auto/qmdisubwindow/tst_qmdisubwindow.cpp
index 8c4415c..78ba46b 100644
--- a/tests/auto/qmdisubwindow/tst_qmdisubwindow.cpp
+++ b/tests/auto/qmdisubwindow/tst_qmdisubwindow.cpp
@@ -1835,7 +1835,10 @@ void tst_QMdiSubWindow::setFont()
newFont.setBold(true);
subWindow->setFont(newFont);
qApp->processEvents();
- QCOMPARE(subWindow->font(), newFont);
+ const QFont &swFont = subWindow->font();
+ QCOMPARE(swFont.family(), newFont.family());
+ QCOMPARE(swFont.pointSize(), newFont.pointSize());
+ QCOMPARE(swFont.weight(), newFont.weight());
QImage newTitleBar = QPixmap::grabWidget(subWindow, titleBarRect).toImage();
QVERIFY(newTitleBar != originalTitleBar);