Fix the bufferProgress property of QDeclarativeAudio
authorAndras Becsi <andras.becsi@digia.com>
Wed, 7 Nov 2012 13:44:28 +0000 (14:44 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 7 Nov 2012 15:20:22 +0000 (16:20 +0100)
commit7319c194cd3d80776c8de3bf0ff2cd36fdd217e0
treec5bc1a1d31c3155a0b7410ca94bc10fbdd583641
parent74e44a6ef60120c3284b07a29d35d8d771c7d4f6
Fix the bufferProgress property of QDeclarativeAudio

The bufferProgress property of QDeclarativeAudio is documented to hold
how much of the data buffer is currently filled, from 0.0 (empty) to
1.0 (full) and should be declared to be of type qreal instead of int.
The implementation was correctly normalizing the buffer status
percentage to the [0, 1] range but the returned value was truncated
to int in QML because of the faulty property declaration.

Change-Id: I494c9cd14f4b3ec511759ae66a50e9f96bcb1452
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
src/imports/multimedia/qdeclarativeaudio_p.h