Review Request 126000: Make sure we load translations on the main thread.

Alex Merry alex.merry at kde.org
Mon Nov 30 14:07:51 UTC 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126000/
-----------------------------------------------------------

(Updated Nov. 30, 2015, 2:07 p.m.)


Status
------

This change has been marked as submitted.


Review request for Extra Cmake Modules and David Faure.


Changes
-------

Submitted with commit fb4d91996affdbcd3ffc19c7646fbf77b96bf1e5 by Alex Merry to branch master.


Bugs: 346188
    http://bugs.kde.org/show_bug.cgi?id=346188


Repository: extra-cmake-modules


Description
-------

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


Diffs
-----

  modules/ECMPoQmTools.cmake 0af5b12fdd662c07792e6084b7279b98dc99cf97 
  modules/ECMQmLoader.cpp.in 423d1c932ddcf3d98c94d2f67e73355129357768 
  tests/ECMPoQmToolsTest/CMakeLists.txt 73d2b4271d646107ce02bb2da71fbe0d11f80fc8 
  tests/ECMPoQmToolsTest/check.cmake.in 5329b78d06bebb9aa14595201f45ac868afd8e81 
  tests/ECMPoQmToolsTest/check_conf.cmake.in 7bd11c36e2830e868c83f455e4b2809b72fcb3ce 
  tests/ECMPoQmToolsTest/tr_thread_test.cpp PRE-CREATION 
  tests/ECMPoQmToolsTest/tr_thread_test_module.cpp PRE-CREATION 

Diff: https://git.reviewboard.kde.org/r/126000/diff/


Testing
-------

Extended unit tests, which pass. Built the world (all the default frameworks stuff) with kdesrc-build.


Thanks,

Alex Merry

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-buildsystem/attachments/20151130/3de64020/attachment.html>


More information about the Kde-buildsystem mailing list