aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmltest/quicktest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmltest/quicktest.cpp')
-rw-r--r--src/qmltest/quicktest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qmltest/quicktest.cpp b/src/qmltest/quicktest.cpp
index 614dde3f6c..6a96395794 100644
--- a/src/qmltest/quicktest.cpp
+++ b/src/qmltest/quicktest.cpp
@@ -212,6 +212,7 @@ int quick_test_main(int argc, char **argv, const char *name, const char *sourceD
QuickTestResult::parseArgs(argc, argv);
+#ifndef QT_NO_TRANSLATION
QTranslator translator;
if (!translationFile.isEmpty()) {
if (translator.load(translationFile)) {
@@ -220,6 +221,7 @@ int quick_test_main(int argc, char **argv, const char *name, const char *sourceD
qWarning("Could not load the translation file '%s'.", qPrintable(translationFile));
}
}
+#endif
// Determine where to look for the test data.
if (testPath.isEmpty() && sourceDir) {