summaryrefslogtreecommitdiff
path: root/tests/auto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/backslashes/src/main.cpp7
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/backslashes/ts/project.ts.result4
2 files changed, 6 insertions, 5 deletions
diff --git a/tests/auto/linguist/lupdate/testdata/good/backslashes/src/main.cpp b/tests/auto/linguist/lupdate/testdata/good/backslashes/src/main.cpp
index e9976c987..3f983156f 100644
--- a/tests/auto/linguist/lupdate/testdata/good/backslashes/src/main.cpp
+++ b/tests/auto/linguist/lupdate/testdata/good/backslashes/src/main.cpp
@@ -33,11 +33,12 @@
//
//
-QString qt_detectRTLLanguage()
+#include <QCoreApplication>
+
+bool qt_detectRTLLanguage()
{
- return QApplication::tr("QT_LAYOUT_DIRECTION",
+ return QCoreApplication::tr("QT_LAYOUT_DIRECTION",
"Translate this string to the string 'LTR' in left-to-right"
" languages or to 'RTL' in right-to-left languages (such as Hebrew"
" and Arabic) to get proper widget layout.") == QLatin1String("RTL");
}
-
diff --git a/tests/auto/linguist/lupdate/testdata/good/backslashes/ts/project.ts.result b/tests/auto/linguist/lupdate/testdata/good/backslashes/ts/project.ts.result
index 3951a6461..90ac88d52 100644
--- a/tests/auto/linguist/lupdate/testdata/good/backslashes/ts/project.ts.result
+++ b/tests/auto/linguist/lupdate/testdata/good/backslashes/ts/project.ts.result
@@ -2,9 +2,9 @@
<!DOCTYPE TS>
<TS version="2.1">
<context>
- <name>QApplication</name>
+ <name>QCoreApplication</name>
<message>
- <location filename="../src/main.cpp" line="38"/>
+ <location filename="../src/main.cpp" line="40"/>
<source>QT_LAYOUT_DIRECTION</source>
<comment>Translate this string to the string &apos;LTR&apos; in left-to-right languages or to &apos;RTL&apos; in right-to-left languages (such as Hebrew and Arabic) to get proper widget layout.</comment>
<translation type="unfinished"></translation>