From fb4d91996affdbcd3ffc19c7646fbf77b96bf1e5 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Sun, 8 Nov 2015 23:10:59 +0000 Subject: 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 --- tests/ECMPoQmToolsTest/check_conf.cmake.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/ECMPoQmToolsTest/check_conf.cmake.in') diff --git a/tests/ECMPoQmToolsTest/check_conf.cmake.in b/tests/ECMPoQmToolsTest/check_conf.cmake.in index 7bd11c36..a752d5bd 100644 --- a/tests/ECMPoQmToolsTest/check_conf.cmake.in +++ b/tests/ECMPoQmToolsTest/check_conf.cmake.in @@ -1,3 +1,5 @@ set(TR_TEST_EXEC "$") set(TR_TEST_2_EXEC "$") set(TR_TEST_SUBDIR_EXEC "$") +set(TR_THREAD_TEST_EXEC "$") +set(TR_THREAD_TEST_2_EXEC "$") -- cgit v1.2.1