libyui-qt  2.49.2
YQSlider Class Reference
Inheritance diagram for YQSlider:
Collaboration diagram for YQSlider:

Public Slots

void valueChangedSlot (int newValue)
 Slot for "value changed". More...
 

Signals

void valueChanged (int newValue)
 Emitted when the value changes (regardless of the notify flag).
 

Public Member Functions

 YQSlider (YWidget *parent, const std::string &label, int minValue, int maxValue, int initialValue, bool reverseLayout=false)
 Constructor. More...
 
virtual ~YQSlider ()
 Destructor.
 
virtual int value ()
 Get the current value (the number entered by the user or set from the outside) of this slider. More...
 
virtual void setLabel (const std::string &label)
 Set the label (the caption above the input field). More...
 
virtual void setEnabled (bool enabled)
 Set enabled/disabled state. More...
 
virtual int preferredWidth ()
 Preferred width of the widget. More...
 
virtual int preferredHeight ()
 Preferred height of the widget. More...
 
virtual void setSize (int newWidth, int newHeight)
 Set the new size of the widget. More...
 
virtual bool setKeyboardFocus ()
 Accept the keyboard focus.
 

Protected Member Functions

virtual void setValueInternal (int val)
 Set the current value (the number entered by the user or set from the outside) of this slider. More...
 

Protected Attributes

YQWidgetCaption_caption
 
QSlider * _qt_slider
 
QSpinBox * _qt_spinBox
 
QFrame * _hbox
 

Detailed Description

Definition at line 36 of file YQSlider.h.

Constructor & Destructor Documentation

◆ YQSlider()

YQSlider::YQSlider ( YWidget *  parent,
const std::string &  label,
int  minValue,
int  maxValue,
int  initialValue,
bool  reverseLayout = false 
)

Constructor.

'reverseLayout' creates the QSpinBox to the left and the QSlider to the right.

Definition at line 41 of file YQSlider.cc.

Here is the call graph for this function:

Member Function Documentation

◆ preferredHeight()

int YQSlider::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 174 of file YQSlider.cc.

◆ preferredWidth()

int YQSlider::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 164 of file YQSlider.cc.

◆ setEnabled()

void YQSlider::setEnabled ( bool  enabled)
virtual

Set enabled/disabled state.

Reimplemented from YWidget.

Definition at line 154 of file YQSlider.cc.

◆ setLabel()

void YQSlider::setLabel ( const std::string &  label)
virtual

Set the label (the caption above the input field).

Reimplemented from YSlider / YIntField.

Definition at line 188 of file YQSlider.cc.

Here is the call graph for this function:

◆ setSize()

void YQSlider::setSize ( int  newWidth,
int  newHeight 
)
virtual

Set the new size of the widget.

Reimplemented from YWidget.

Definition at line 181 of file YQSlider.cc.

◆ setValueInternal()

void YQSlider::setValueInternal ( int  val)
protectedvirtual

Set the current value (the number entered by the user or set from the outside) of this slider.

'val' is guaranteed to be between minValue and maxValue; no further checks are required.

Implemented from YSlider/ YIntField.

Definition at line 134 of file YQSlider.cc.

◆ value()

int YQSlider::value ( )
virtual

Get the current value (the number entered by the user or set from the outside) of this slider.

Implemented from YSlider / YIntField.

Definition at line 127 of file YQSlider.cc.

◆ valueChangedSlot

void YQSlider::valueChangedSlot ( int  newValue)
slot

Slot for "value changed".

This will send a ValueChanged event if 'notify' is set.

Definition at line 144 of file YQSlider.cc.

Here is the call graph for this function:

The documentation for this class was generated from the following files: