summaryrefslogtreecommitdiff
path: root/tests/auto/qmdisubwindow
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-09-07 11:30:36 +0200
committerGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-09-07 11:34:44 +0200
commit6b7330ee075a62138f005492a6448059106554af (patch)
tree8af1a8116dcc34720865c25d8552b0c7de8ceded /tests/auto/qmdisubwindow
parentd4b695977171177f5f302b845273039aebd618ac (diff)
downloadqt4-tools-6b7330ee075a62138f005492a6448059106554af.tar.gz
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 8c4415c538..78ba46b10a 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);