Review Request 123726: Make sure we load translations on the main thread.
Alex Merry
alex.merry at kde.org
Wed Oct 14 21:36:32 UTC 2015
> On Oct. 14, 2015, 9:21 p.m., Xuetian Weng wrote:
> > tests/ECMPoQmToolsTest/tr_thread_test.cpp, line 72
> > <https://git.reviewboard.kde.org/r/123726/diff/3/?file=411084#file411084line72>
> >
> > use QTimer::singleShot or QMetaObject::invokeMethod(Qt::QueueConnection).
> >
> > IMHO, everything in this test doesn't need QTimer, QMetaObject::invokeMethod is enough.
>
> Alex Merry wrote:
> Huh, I hadn't realised that QMetaObject::invokeMethod(Qt::QueuedConnection) queued up an event on the *main* event loop (but, yes, the documentation does say that). So you're right, QTimer is unnecessary.
Not only that, but I wasn't thinking through the QThread slot properly - the slot in Thread will be run on the main loop. I should change the comment to reflect that.
- Alex
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/123726/#review86861
-----------------------------------------------------------
On Oct. 14, 2015, 9:33 p.m., Alex Merry wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/123726/
> -----------------------------------------------------------
>
> (Updated Oct. 14, 2015, 9:33 p.m.)
>
>
> Review request for Extra Cmake Modules, Aurélien Gâteau and Chusslove Illich.
>
>
> Bugs: 346188
> http://bugs.kde.org/show_bug.cgi?id=346188
>
>
> Repository: extra-cmake-modules
>
>
> Description
> -------
>
> BUG: 346188
>
>
> Diffs
> -----
>
> modules/ECMPoQmTools.cmake 12bcf6b67c57dd456f078820f86c1e8365cb7c06
> modules/ECMQmLoader.cpp.in bc01bf98f0caa0aedf6b6175ef6c9f7757afdf1b
> tests/CMakeLists.txt 8a75ae61d9c2ce2eeb78e0a4c308d0d0c5fff5a5
> tests/ECMPoQmToolsTest/CMakeLists.txt 15351d2f710f9bd07a38d3b1ad9b15e24bc64a61
> tests/ECMPoQmToolsTest/check_conf.cmake.in PRE-CREATION
> tests/ECMPoQmToolsTest/check_tree.cmake.in 9f4f7c0d19f286647ad1c9c99362bd921ff01cba
> tests/ECMPoQmToolsTest/tr_test-po/en/catalog.po PRE-CREATION
> tests/ECMPoQmToolsTest/tr_test-po/en_GB/catalog.po PRE-CREATION
> tests/ECMPoQmToolsTest/tr_test.cpp PRE-CREATION
> tests/ECMPoQmToolsTest/tr_thread_test.cpp PRE-CREATION
> tests/ECMPoQmToolsTest/tr_thread_test_module.cpp PRE-CREATION
>
> Diff: https://git.reviewboard.kde.org/r/123726/diff/
>
>
> Testing
> -------
>
> Added tests for basic functionality and for loading a module on a thread. Both pass.
>
>
> Thanks,
>
> Alex Merry
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-buildsystem/attachments/20151014/e9b0f70c/attachment.html>
More information about the Kde-buildsystem
mailing list