Doc: Update, and reduce duplication of, QThread-related info
authorSze Howe Koh <szehowe.koh@gmail.com>
Tue, 25 Feb 2014 08:23:48 +0000 (09:23 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 13 Mar 2014 16:17:35 +0000 (17:17 +0100)
commitdd03e7db8f47fb79bd9120fb03e118fa86668cd3
tree78ab507fcdbc7bb6a0443298c2a95e64ee27a258
parent28984cd5ba63c557b88377f996a90b9665f37745
Doc: Update, and reduce duplication of, QThread-related info

Added/Changed:
- Move content from the Thread Basics overview to the QThread class ref
- Rephrase bits for clarity
- Use more links

Removed:
- (threads-basics.qdoc) Warning against moveToThread(this): This usage
  came about when people tried to add slots to a QThread subclass. This
  patch adds a warning against the root cause.
- (threads-basics.qdoc) The strategy for managing member variables:
  Sounds error-prone. Pushing results through signals is safer.
- (qthread.cpp) The note about GUI classes: Irrelevant to QThread,
  and it's already mentioned elsewhere.

This is a cherry-pick from a9d5627e6a7b82 in qtbase.git.

Change-Id: I491f64f998050daf0251abb2126bc9f7a198c17d
Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
doc/src/tutorials/threads.qdoc
src/corelib/thread/qthread.cpp