summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_script_qscriptvalueiterator.cpp
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2009-11-02 08:23:12 (GMT)
committerJanne Anttila <janne.anttila@digia.com>2009-11-02 09:49:08 (GMT)
commitfc6822cb2c1a09b018189168965a8ade23cf1074 (patch)
tree27f6d2bd6008a5ba922b4587098678494b04a384 /doc/src/snippets/code/src_script_qscriptvalueiterator.cpp
parent8910b449dafcb3475ab8c6f90213cd632412da68 (diff)
downloadQt-fc6822cb2c1a09b018189168965a8ade23cf1074.zip
Qt-fc6822cb2c1a09b018189168965a8ade23cf1074.tar.gz
Qt-fc6822cb2c1a09b018189168965a8ade23cf1074.tar.bz2
Fix for static QSound::play in Symbian and code style fixes.
Static QSound::play(const QString& filename) API did work for Symbian, since local stack variable was deleted before asynchronous play completed. This happened with the following seqeunce: - void QAuServer::play() is called and creates a QSound on the stack - QAuBucketS60::play() is called - m_prepared is false, so the actual play will happen a bit later - The QSound created on the stack is deleted -> Silence This scenario is now fixed by making copy of QSound object to internal list, and temp object is being deleted when play is completed either successfully or unsuccessfully. Added also manual test case for static play. Task-number: QTBUG-5217 Reviewed-by: Miikka Heikkinen
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptvalueiterator.cpp')
0 files changed, 0 insertions, 0 deletions