vlc | branch: master | Ludovic Fauvet <[email protected]> | 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 <[email protected]>

> 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
_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to