Qt: Fix the bug where the volume was losing 1% at each start
authorLudovic Fauvet <etix@l0cal.com>
Mon, 10 Aug 2009 23:29:17 +0000 (01:29 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 14 Aug 2009 13:44:16 +0000 (15:44 +0200)
commit5eb13a62c115a7a45331c6af1f02b5cc118c9228
treefe320fb83d6852bf63b3ac76a455efc99cc3b254
parent8cc189576827a40441e05d3e72c2aa8f3520328b
Qt: Fix the bug where the volume was losing 1% at each start

The bug originates from an implicit conversion to int. This commit
explicitly convert the value to qreal then use qRound to take the nearest
integer.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/components/controller_widget.cpp