|
|
A KAction that displays an a value using a QSlider. Applications can use this class to add a QSlider widget to their toolbars (eg. a volume control).
SliderAction ( int min, int max, int step, int val,
const QString &text,
QObject *parent = 0, const char *name = 0 )
| SliderAction |
int plug ( QWidget *widget, int index = -1 )
| plug |
[virtual]
Reimplemented from KAction.
void unplug ( QWidget *widget )
| unplug |
[virtual]
Reimplemented from KAction.
QSlider * widget ()
| widget |
[const]
Returns a pointer to the QSlider object.
int value ()
| value |
[const]
Returns the current value of the slider.
QSlider * createWidget ( QWidget *parent, const char *name=0 )
| createWidget |
[virtual]
A factory method that creates the QSlider object.
void setValue ( int num )
| setValue |
[slot]
Sets the value of the slider.
QSlider::setValue(int)
void setTickInterval ( int ticks )
| setTickInterval |
[slot]
Sets the interval between the tickmarks of the slider.
QSlider::setTickInteral(int)
void setOrientation ( Orientation o )
| setOrientation |
[slot]
Sets the orientation of the slider.
void valueChanged ( int )
| valueChanged |
[signal]
Emitted when the value of the slider is changed.