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

Public Member Functions

 YQDateField (YWidget *parent, const std::string &label)
 Constructor.
 
virtual ~YQDateField ()
 Destructor.
 
virtual std::string value ()
 Get the current value (the text entered by the user or set from the outside) of this input field. More...
 
virtual void setValue (const std::string &newValue)
 Set the current value (the text entered by the user or set from the outside) of this input field. 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. More...
 

Protected Attributes

YQWidgetCaption_caption
 
QDateEdit * _qt_dateEdit
 

Detailed Description

Definition at line 37 of file YQDateField.h.

Member Function Documentation

◆ preferredHeight()

int YQDateField::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 108 of file YQDateField.cc.

◆ preferredWidth()

int YQDateField::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 102 of file YQDateField.cc.

◆ setEnabled()

void YQDateField::setEnabled ( bool  enabled)
virtual

Set enabled/disabled state.

Reimplemented from YWidget.

Definition at line 95 of file YQDateField.cc.

◆ setKeyboardFocus()

bool YQDateField::setKeyboardFocus ( )
virtual

Accept the keyboard focus.

Reimplemented from YWidget.

Definition at line 120 of file YQDateField.cc.

◆ setLabel()

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

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

Reimplemented from YSimpleInputField.

Definition at line 88 of file YQDateField.cc.

Here is the call graph for this function:

◆ setSize()

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

Set the new size of the widget.

Reimplemented from YWidget.

Definition at line 114 of file YQDateField.cc.

◆ setValue()

void YQDateField::setValue ( const std::string &  newValue)
virtual

Set the current value (the text entered by the user or set from the outside) of this input field.

Implemented from YSimpleInputField.

Definition at line 80 of file YQDateField.cc.

◆ value()

string YQDateField::value ( )
virtual

Get the current value (the text entered by the user or set from the outside) of this input field.

Implemented from YSimpleInputField.

Definition at line 74 of file YQDateField.cc.


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