From cedaf867421f4c43a2da712f00e9626e64c8b250 Mon Sep 17 00:00:00 2001 From: Tasuku Suzuki Date: Fri, 23 Nov 2012 04:21:49 +0900 Subject: Enable mobule build with QT_NO_TRANSLATION Change-Id: Id7aeef0d499f48ddc64b4ea3e4dc713db8458c38 Reviewed-by: Oswald Buddenhagen Reviewed-by: Alan Alpert (RIM) --- src/qmltest/quicktest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/qmltest') 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) { -- cgit v1.2.3