libyui-qt
2.47.1.1
|
Public Member Functions | |
YQInputField (YWidget *parent, const std::string &label, bool passwordMode=false) | |
Constructor. | |
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 &text) |
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 | setValidChars (const std::string &validChars) |
Set the valid input characters. More... | |
virtual void | setInputMaxLength (int numberOfChars) |
Specify the amount of characters which can be inserted. More... | |
bool | isValidText (const QString &text) const |
Returns 'true' if a given text is valid according to ValidChars. | |
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 Slots | |
void | changed (const QString &) |
Triggered when the text in the InputField changes. More... | |
void | displayCapsLockWarning () |
Display a warning that CapsLock is active: Replace the label with "CapsLock!". | |
void | clearCapsLockWarning () |
Clear the CapsLock warning: Restore old label. | |
Protected Attributes | |
YQWidgetCaption * | _caption |
YQRawLineEdit * | _qt_lineEdit |
QY2CharValidator * | _validator |
bool | _shrinkable |
bool | _displayingCapsLockWarning |
Definition at line 43 of file YQInputField.h.
|
protectedslot |
Triggered when the text in the InputField changes.
This may be of interest to the module.
Definition at line 212 of file YQInputField.cc.
|
virtual |
Preferred height of the widget.
Reimplemented from YWidget.
Definition at line 138 of file YQInputField.cc.
|
virtual |
Preferred width of the widget.
Reimplemented from YWidget.
Definition at line 127 of file YQInputField.cc.
|
virtual |
Set enabled/disabled state.
Reimplemented from YWidget.
Definition at line 119 of file YQInputField.cc.
|
virtual |
Specify the amount of characters which can be inserted.
Reimplemented from YInputField.
Definition at line 197 of file YQInputField.cc.
|
virtual |
Accept the keyboard focus.
Reimplemented from YWidget.
Definition at line 203 of file YQInputField.cc.
|
virtual |
Set the label (the caption above the input field).
Reimplemented from YInputField.
Definition at line 150 of file YQInputField.cc.
|
virtual |
Set the new size of the widget.
Reimplemented from YWidget.
Definition at line 144 of file YQInputField.cc.
|
virtual |
Set the valid input characters.
No input validation is performed (i.e., the user can enter anything) if this is empty.
Reimplemented from YInputField.
Definition at line 169 of file YQInputField.cc.
|
virtual |
Set the current value (the text entered by the user or set from the outside) of this input field.
Reimplemented from YInputField.
Definition at line 103 of file YQInputField.cc.
|
virtual |
Get the current value (the text entered by the user or set from the outside) of this input field.
Reimplemented from YInputField.
Definition at line 97 of file YQInputField.cc.