libyui-qt  2.47.1.1
YQIntField Class Reference
Inheritance diagram for YQIntField:
Collaboration diagram for YQIntField:

Signals

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

Public Member Functions

 YQIntField (YWidget *parent, const std::string &label, int minValue, int maxValue, int initialValue)
 Constructor.
 
virtual ~YQIntField ()
 Destructor.
 
virtual int value ()
 Get the current value (the number entered by the user or set from the outside) of this IntField. More...
 
virtual void setLabel (const std::string &label)
 Set the label (the caption above the input field). More...
 
virtual void setEnabled (bool enabled)
 Sets the widget's enabled 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. More...
 

Protected Slots

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

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 IntField. More...
 

Protected Attributes

YQWidgetCaption_caption
 
QSpinBox * _qt_spinBox
 

Detailed Description

Definition at line 39 of file YQIntField.h.

Member Function Documentation

int YQIntField::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 133 of file YQIntField.cc.

int YQIntField::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 126 of file YQIntField.cc.

void YQIntField::setEnabled ( bool  enabled)
virtual

Sets the widget's enabled state.

Inherited from YWidget.

Definition at line 117 of file YQIntField.cc.

bool YQIntField::setKeyboardFocus ( )
virtual

Accept the keyboard focus.

Reimplemented from YWidget.

Definition at line 147 of file YQIntField.cc.

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

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

Reimplemented from YIntField.

Definition at line 109 of file YQIntField.cc.

Here is the call graph for this function:

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

Set the new size of the widget.

Reimplemented from YWidget.

Definition at line 140 of file YQIntField.cc.

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.

Definition at line 92 of file YQIntField.cc.

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.

Definition at line 85 of file YQIntField.cc.

void YQIntField::valueChangedSlot ( int  newValue)
protectedslot

Slot for "value changed".

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

Definition at line 100 of file YQIntField.cc.

Here is the call graph for this function:


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