libyui-qt
Loading...
Searching...
No Matches
YQIntField Class Reference
Inheritance diagram for YQIntField:
Collaboration diagram for YQIntField:

Signals

void valueChanged (int newValue)
 

Public Member Functions

 YQIntField (YWidget *parent, const std::string &label, int minValue, int maxValue, int initialValue)
 
virtual ~YQIntField ()
 
virtual int value ()
 
virtual void setLabel (const std::string &label)
 
virtual void setEnabled (bool enabled)
 
virtual int preferredWidth ()
 
virtual int preferredHeight ()
 
virtual void setSize (int newWidth, int newHeight)
 
virtual bool setKeyboardFocus ()
 

Protected Slots

void valueChangedSlot (int newValue)
 

Protected Member Functions

virtual void setValueInternal (int val)
 

Protected Attributes

YQWidgetCaption_caption
 
QSpinBox * _qt_spinBox
 

Constructor & Destructor Documentation

◆ YQIntField()

YQIntField::YQIntField ( YWidget *  parent,
const std::string &  label,
int  minValue,
int  maxValue,
int  initialValue 
)

Constructor.

◆ ~YQIntField()

YQIntField::~YQIntField ( )
virtual

Destructor.

Member Function Documentation

◆ preferredHeight()

int YQIntField::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

◆ preferredWidth()

int YQIntField::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

◆ setEnabled()

void YQIntField::setEnabled ( bool  enabled)
virtual

Sets the widget's enabled state.

Inherited from YWidget.

◆ setKeyboardFocus()

bool YQIntField::setKeyboardFocus ( )
virtual

Accept the keyboard focus.

Reimplemented from YWidget.

◆ setLabel()

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

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

Reimplemented from YIntField.

◆ setSize()

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

Set the new size of the widget.

Reimplemented from YWidget.

◆ setValueInternal()

void YQIntField::setValueInternal ( int  val)
protectedvirtual

Set the current value (the number entered by the user or set from the outside) of this IntField. 'val' is guaranteed to be between minValue and maxValue; no further checks are required.

Implemented from YIntField.

◆ value()

int YQIntField::value ( )
virtual

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

Implemented from YIntField.

◆ valueChanged

void YQIntField::valueChanged ( int  newValue)
signal

Emitted when the value changes (regardless of the notify flag).

◆ valueChangedSlot

void YQIntField::valueChangedSlot ( int  newValue)
protectedslot

Slot for "value changed". This will send a ValueChanged event if 'notify' is set.


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