aboutsummaryrefslogtreecommitdiff
path: root/tests/ECMPoQmToolsTest/check.cmake.in
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@kde.org>2015-11-08 23:10:59 +0000
committerAlex Merry <alex.merry@kde.org>2015-11-30 14:07:07 +0000
commitfb4d91996affdbcd3ffc19c7646fbf77b96bf1e5 (patch)
tree2f66eec33d3b7b96691fe5aa5f9fe96f2029229f /tests/ECMPoQmToolsTest/check.cmake.in
parent1e8e0da3eb475bb8b78baa54cb0c34b913c2dc5d (diff)
downloadextra-cmake-modules-fb4d91996affdbcd3ffc19c7646fbf77b96bf1e5.tar.gz
extra-cmake-modules-fb4d91996affdbcd3ffc19c7646fbf77b96bf1e5.tar.bz2
Make sure we load translations on the main thread.
Because the old implementation (accidentally) worked when you put the ecm_create_qm_loader call in a different CMakeLists.txt file to the target the file was added to, some projects did this. This won't work with build-time-generated files, though, like moc files. So we (ab)use QTimer events to make the loading happen on the main thread. BUG: 346188 REVIEW: 126000
Diffstat (limited to 'tests/ECMPoQmToolsTest/check.cmake.in')
-rw-r--r--tests/ECMPoQmToolsTest/check.cmake.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ECMPoQmToolsTest/check.cmake.in b/tests/ECMPoQmToolsTest/check.cmake.in
index 5329b78d..4fe2ac33 100644
--- a/tests/ECMPoQmToolsTest/check.cmake.in
+++ b/tests/ECMPoQmToolsTest/check.cmake.in
@@ -87,6 +87,9 @@ if("@CMAKE_SYSTEM_NAME@" STREQUAL "Linux")
check_translations(TR_TEST_2 "${TR_TEST_2_EXEC}" catalog2)
check_translations(TR_TEST_SUBDIR "${TR_TEST_SUBDIR_EXEC}" catalog)
+
+ check_translations(TR_THREAD_TEST "${TR_THREAD_TEST_EXEC}" catalog)
+ check_translations(TR_THREAD_TEST_2 "${TR_THREAD_TEST_2_EXEC}" catalog2)
endif()
if (fail)