1 /***************************************************************************
2 kinterfacemain.cpp - description
4 begin : Sun Mar 25 2001
5 copyright : (C) 2001 by andres
7 ***************************************************************************/
8 /***************************************************************************
9 shamelessly copied from noatun's excellent interface
10 ****************************************************************************/
12 #include "kvlcslider.h"
14 KVLCSlider::KVLCSlider(QWidget * parent, const char * name) :
15 QSlider(parent,name), pressed(false)
19 KVLCSlider::KVLCSlider(Orientation o, QWidget * parent, const char * name) :
20 QSlider(o,parent,name), pressed(false)
24 KVLCSlider::KVLCSlider(int minValue, int maxValue, int pageStep, int value,
25 Orientation o, QWidget * parent, const char * name) :
26 QSlider(minValue, maxValue, pageStep, value, o, parent,name), pressed(false)
30 void KVLCSlider::setValue(int i)
34 QSlider::setValue( i );
38 void KVLCSlider::mousePressEvent( QMouseEvent *e )
40 if ( e->button() != RightButton )
43 QSlider::mousePressEvent( e );
47 void KVLCSlider::mouseReleaseEvent( QMouseEvent *e )
50 QSlider::mouseReleaseEvent( e );
51 emit userChanged( value() );