]> git.sesse.net Git - vlc/commit
Qt: use a QStyle to draw the seek slider
authorLudovic Fauvet <etix@videolan.org>
Mon, 12 Mar 2012 16:11:30 +0000 (17:11 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 13 Mar 2012 13:35:25 +0000 (14:35 +0100)
commita569b0968802ce6a3582312dd22e7ffa767953ca
treed9c5d2d4e7ed956e7f71cb8bbf35e98ac46a847e
parent31f985a586958bfb31779936555e4bb98cebc71b
Qt: use a QStyle to draw the seek slider

This should be much cleaner than drawing ourselves inside the paintEvent
of the widget. Furthermore it is easier to fallback to the native slider
available in pre 2.0.
The use of a QStyle also fixes the clipping issue where the handle was
cropped while being at the start or the end of the slider.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/Modules.am
modules/gui/qt4/styles/seekstyle.cpp [new file with mode: 0644]
modules/gui/qt4/styles/seekstyle.hpp [new file with mode: 0644]
modules/gui/qt4/util/input_slider.cpp
modules/gui/qt4/util/input_slider.hpp