Make sure we load translations on the main thread.

Review Request #126000 - Created Nov. 8, 2015 and submitted

Information
Alex Merry
extra-cmake-modules
master
346188
125999
Reviewers
extracmakemodules
dfaure

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

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

Issues

  • 0
  • 2
  • 1
  • 3
Description From Last Updated
Alex Merry
Alex Merry
Alex Merry
David Faure
David Faure
Alex Merry
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit fb4d91996affdbcd3ffc19c7646fbf77b96bf1e5 by Alex Merry to branch master.
Loading...