summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-23 16:43:59 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-23 16:43:59 (GMT)
commit454bedce14728e4f0575aadea6c454717c95d3fe (patch)
tree46f4b9056a9caff40b61b65411ffcf6168dc93d9
parent92b717cbfb94bffbdc1a4d22f67ad359ba81a439 (diff)
downloadQt-454bedce14728e4f0575aadea6c454717c95d3fe.zip
Qt-454bedce14728e4f0575aadea6c454717c95d3fe.tar.gz
Qt-454bedce14728e4f0575aadea6c454717c95d3fe.tar.bz2
Fix Q3TextBrowser
It seems that the test machine has some different font configuration which makes the font weight different from the default one. Fixed the problem by resolving the font before comparing. Reviewed-by: Peter Hartmann
-rw-r--r--tests/auto/q3textbrowser/tst_q3textbrowser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/q3textbrowser/tst_q3textbrowser.cpp b/tests/auto/q3textbrowser/tst_q3textbrowser.cpp
index 9a9f55c..b4c7e0d 100644
--- a/tests/auto/q3textbrowser/tst_q3textbrowser.cpp
+++ b/tests/auto/q3textbrowser/tst_q3textbrowser.cpp
@@ -97,6 +97,7 @@ void tst_Q3TextBrowser::setFont()
{
QFont f("Courier", 6);
testWidget->setFont(f);
+ f = f.resolve(testWidget->font());
QVERIFY(testWidget->font() == f);
}