diff options
author | Joona Petrell <joona.t.petrell@nokia.com> | 2010-06-30 07:10:33 (GMT) |
---|---|---|
committer | Joona Petrell <joona.t.petrell@nokia.com> | 2010-07-02 04:12:40 (GMT) |
commit | 37792d20eeef870a0d695fc15bc943f20275be9a (patch) | |
tree | aa5ed14a44e8ab2edc7c3100f9c6226506c94e59 /tests/auto/declarative/qdeclarativetextedit | |
parent | 3256aad1195e28509a89f217bcad8435f46fe1e5 (diff) | |
download | Qt-37792d20eeef870a0d695fc15bc943f20275be9a.zip Qt-37792d20eeef870a0d695fc15bc943f20275be9a.tar.gz Qt-37792d20eeef870a0d695fc15bc943f20275be9a.tar.bz2 |
Fix TextInput text getting improperly clipped
Task-number: QTBUG-11790
Reviewed-by: Martin Jones
Diffstat (limited to 'tests/auto/declarative/qdeclarativetextedit')
-rw-r--r-- | tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp b/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp index f1a367f..fc329c8 100644 --- a/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp +++ b/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp @@ -55,6 +55,7 @@ #include <QDeclarativeView> #include <QStyle> #include <QInputContext> +#include <private/qapplication_p.h> #ifdef Q_OS_SYMBIAN // In Symbian OS test data is located in applications private dir @@ -353,7 +354,9 @@ void tst_qdeclarativetextedit::alignments() #ifdef Q_WS_X11 // Font-specific, but not likely platform-specific, so only test on one platform - QCOMPARE(actual,expect); + if (QApplicationPrivate::graphics_system_name == "raster" || QApplicationPrivate::graphics_system_name == "") { + QCOMPARE(actual,expect); + } #endif } |