[vlc-commits] Qt: use a QStyle to draw the seek slider

Ludovic Fauvet git at videolan.org
Tue Mar 13 14:35:14 CET 2012


vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Mon Mar 12 17:11:30 2012 +0100| [a569b0968802ce6a3582312dd22e7ffa767953ca] | committer: Jean-Baptiste Kempf

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 at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a569b0968802ce6a3582312dd22e7ffa767953ca
---

 modules/gui/qt4/Modules.am            |    7 +-
 modules/gui/qt4/styles/seekstyle.cpp  |  207 +++++++++++++++++++++++++++++++++
 modules/gui/qt4/styles/seekstyle.hpp  |   38 ++++++
 modules/gui/qt4/util/input_slider.cpp |  199 ++++---------------------------
 modules/gui/qt4/util/input_slider.hpp |   10 +-
 5 files changed, 283 insertions(+), 178 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=a569b0968802ce6a3582312dd22e7ffa767953ca


More information about the vlc-commits mailing list