summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2013-08-07 13:23:51 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-07 17:04:02 +0200
commitea8bceec7f449e3f78436e02bb2d06a028cff2a8 (patch)
tree50634d91dcca90866007c8b52d9d675ab6433883
parentcf0b35e221797f20caf0f9904237dea9905aecc8 (diff)
downloadqttools-ea8bceec7f449e3f78436e02bb2d06a028cff2a8.tar.gz
build without QT_DISABLE_DEPRECATED_BEFORE=0
Change-Id: I76f23c2bb29bba1bcdb9f49cecc7aba36716161f Reviewed-by: hjk <hjk121@nokiamail.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
-rw-r--r--tests/auto/linguist/lrelease/lrelease.pro1
-rw-r--r--tests/auto/linguist/lrelease/tst_lrelease.cpp8
2 files changed, 4 insertions, 5 deletions
diff --git a/tests/auto/linguist/lrelease/lrelease.pro b/tests/auto/linguist/lrelease/lrelease.pro
index 7da0e42b8..ba69b7ff3 100644
--- a/tests/auto/linguist/lrelease/lrelease.pro
+++ b/tests/auto/linguist/lrelease/lrelease.pro
@@ -3,4 +3,3 @@ QT = core testlib
TARGET = tst_lrelease
SOURCES += tst_lrelease.cpp
-DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lrelease/tst_lrelease.cpp b/tests/auto/linguist/lrelease/tst_lrelease.cpp
index f53eca36d..3542d2573 100644
--- a/tests/auto/linguist/lrelease/tst_lrelease.cpp
+++ b/tests/auto/linguist/lrelease/tst_lrelease.cpp
@@ -141,11 +141,11 @@ void tst_lrelease::translate()
QCOMPARE(QCoreApplication::translate("", "Test", "Empty context"), QString("AAAA"));
// Test plurals
- QString txed = QCoreApplication::translate("Plurals", "There are %n houses", 0, QCoreApplication::UnicodeUTF8, 0);
+ QString txed = QCoreApplication::translate("Plurals", "There are %n houses", 0, 0);
QCOMPARE(QString::fromLatin1("[%1]").arg(txed), QString("[There are 0 houses]"));
- QCOMPARE(QCoreApplication::translate("Plurals", "There are %n houses", 0, QCoreApplication::UnicodeUTF8, 1), QString("There is 1 house"));
- QCOMPARE(QCoreApplication::translate("Plurals", "There are %n houses", 0, QCoreApplication::UnicodeUTF8, 2), QString("There are 2 houses"));
- QCOMPARE(QCoreApplication::translate("Plurals", "There are %n houses", 0, QCoreApplication::UnicodeUTF8, 3), QString("There are 3 houses"));
+ QCOMPARE(QCoreApplication::translate("Plurals", "There are %n houses", 0, 1), QString("There is 1 house"));
+ QCOMPARE(QCoreApplication::translate("Plurals", "There are %n houses", 0, 2), QString("There are 2 houses"));
+ QCOMPARE(QCoreApplication::translate("Plurals", "There are %n houses", 0, 3), QString("There are 3 houses"));
// More plurals