summaryrefslogtreecommitdiffstats
path: root/doc/src/howtos/HWacceleration.qdoc
diff options
context:
space:
mode:
authorSze Howe Koh <szehowe.koh@gmail.com>2013-02-19 12:19:25 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-19 16:45:43 (GMT)
commit0b83e9e665ec410610289242a821d55e445c8506 (patch)
tree2704e0521a67f268a27449bc038fbeed499a99e0 /doc/src/howtos/HWacceleration.qdoc
parent0632711ebfa8e2167628f5f4ef4168363eb77eba (diff)
downloadQt-0b83e9e665ec410610289242a821d55e445c8506.zip
Qt-0b83e9e665ec410610289242a821d55e445c8506.tar.gz
Qt-0b83e9e665ec410610289242a821d55e445c8506.tar.bz2
QThread documentation: do not discourage the reimplementation of QThread
The new QThread documentation now really discourage to reimplement QThread. But in fact, there are many cases where it is perfectly fine. And the example given is even a case where using worker object is wrong. The examle even contains a leak since the thread will never stop and will even leak. This changes put back some sentences from before commit 207f588b6896cbe72745037dc1cb0a3aef1cf6d0. The sample code has been re-writen. Notice how reimpementing run takes less lines of code, less runtime overhead, no leaks, and also is more complete than the previous example. This is a modified backport of qtbase commit 91e12dca757a8ef5c4691b70eb80db61a9d47e83 Change-Id: I4932aef00307a6cf91d57d632a02b8a85e5e8845 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'doc/src/howtos/HWacceleration.qdoc')
0 files changed, 0 insertions, 0 deletions