diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-03-17 04:02:17 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-03-17 04:02:17 (GMT) |
commit | 36dcc2be63375da1f73d87565397fd11bf445bf8 (patch) | |
tree | bb62afdce97f2a2a4f5df6616cf2d2c1582bc3bf /tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp | |
parent | 7a8ed0580665e0240fc3539f29300606cfe7ccbc (diff) | |
download | Qt-36dcc2be63375da1f73d87565397fd11bf445bf8.zip Qt-36dcc2be63375da1f73d87565397fd11bf445bf8.tar.gz Qt-36dcc2be63375da1f73d87565397fd11bf445bf8.tar.bz2 |
Make states test work with smaller font size.
Diffstat (limited to 'tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp')
-rw-r--r-- | tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp b/tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp index eb0e2bd..c16a870 100644 --- a/tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp +++ b/tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp @@ -955,12 +955,12 @@ void tst_qdeclarativestates::reset() QDeclarativeText *text = rect->findChild<QDeclarativeText*>(); QVERIFY(text != 0); - QCOMPARE(text->width(), qreal(50.)); + QCOMPARE(text->width(), qreal(40.)); QVERIFY(text->width() < text->height()); rect->setState("state1"); - QVERIFY(text->width() > 51); + QVERIFY(text->width() > 41); QVERIFY(text->width() > text->height()); } |