summaryrefslogtreecommitdiff
path: root/tests/auto/qplaintextedit/tst_qplaintextedit.cpp
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2009-06-08 15:15:56 +0300
committerJanne Anttila <janne.anttila@digia.com>2009-06-08 15:15:56 +0300
commit320e003d2ee71b8c58e930dabf0603f6dc1b1647 (patch)
treeb726ab116ca157d01e606bb0c56292438fbe2a26 /tests/auto/qplaintextedit/tst_qplaintextedit.cpp
parentd21b8174071c56aaf8625229e4b7f50292619868 (diff)
downloadqt4-tools-320e003d2ee71b8c58e930dabf0603f6dc1b1647.tar.gz
Fix to qplaintextedit::getSetCheck auto test in Symbian.
We cannot use INT_MAX since qreal is typedef to float in Symbian OS.
Diffstat (limited to 'tests/auto/qplaintextedit/tst_qplaintextedit.cpp')
-rw-r--r--tests/auto/qplaintextedit/tst_qplaintextedit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qplaintextedit/tst_qplaintextedit.cpp b/tests/auto/qplaintextedit/tst_qplaintextedit.cpp
index 6835c216ec..456ab7b0da 100644
--- a/tests/auto/qplaintextedit/tst_qplaintextedit.cpp
+++ b/tests/auto/qplaintextedit/tst_qplaintextedit.cpp
@@ -221,7 +221,7 @@ void tst_QPlainTextEdit::getSetCheck()
QCOMPARE(0, obj1.tabStopWidth());
obj1.setTabStopWidth(INT_MIN);
QCOMPARE(0, obj1.tabStopWidth()); // Makes no sense to set a negative tabstop value
-#if defined(QT_ARCH_WINDOWSCE)
+#if defined(QT_ARCH_WINDOWSCE) || defined (QT_ARCH_SYMBIAN)
// due to rounding error in qRound when qreal==float
// we cannot use INT_MAX for this check
obj1.setTabStopWidth(SHRT_MAX*2);