◆ YQInputField()
YQInputField::YQInputField |
( |
YWidget * | parent, |
|
|
const std::string & | label, |
|
|
bool | passwordMode = false ) |
◆ changed
void YQInputField::changed |
( |
const QString & | | ) |
|
|
protectedslot |
Triggered when the text in the InputField changes. This may be of interest to the module.
◆ clearCapsLockWarning
void YQInputField::clearCapsLockWarning |
( |
| ) |
|
|
protectedslot |
Clear the CapsLock warning: Restore old label
◆ displayCapsLockWarning
void YQInputField::displayCapsLockWarning |
( |
| ) |
|
|
protectedslot |
Display a warning that CapsLock is active: Replace the label with "CapsLock!"
◆ isValidText()
bool YQInputField::isValidText |
( |
const QString & | text | ) |
const |
Returns 'true' if a given text is valid according to ValidChars.
◆ preferredHeight()
int YQInputField::preferredHeight |
( |
| ) |
|
|
virtual |
Preferred height of the widget.
Reimplemented from YWidget.
◆ preferredWidth()
int YQInputField::preferredWidth |
( |
| ) |
|
|
virtual |
Preferred width of the widget.
Reimplemented from YWidget.
◆ setEnabled()
void YQInputField::setEnabled |
( |
bool | enabled | ) |
|
|
virtual |
Set enabled/disabled state.
Reimplemented from YWidget.
◆ setInputMaxLength()
void YQInputField::setInputMaxLength |
( |
int | numberOfChars | ) |
|
|
virtual |
Specify the amount of characters which can be inserted.
Reimplemented from YInputField.
◆ setKeyboardFocus()
bool YQInputField::setKeyboardFocus |
( |
| ) |
|
|
virtual |
Accept the keyboard focus.
Reimplemented from YWidget.
◆ setLabel()
void YQInputField::setLabel |
( |
const std::string & | label | ) |
|
|
virtual |
Set the label (the caption above the input field).
Reimplemented from YInputField.
◆ setSize()
void YQInputField::setSize |
( |
int | newWidth, |
|
|
int | newHeight ) |
|
virtual |
Set the new size of the widget.
Reimplemented from YWidget.
◆ setValidChars()
void YQInputField::setValidChars |
( |
const std::string & | validChars | ) |
|
|
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.
◆ setValue()
void YQInputField::setValue |
( |
const std::string & | text | ) |
|
|
virtual |
Set the current value (the text entered by the user or set from the outside) of this input field.
Reimplemented from YInputField.
◆ value()
string YQInputField::value |
( |
| ) |
|
|
virtual |
Get the current value (the text entered by the user or set from the outside) of this input field.
Reimplemented from YInputField.
The documentation for this class was generated from the following files:
- /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-qt/src/YQInputField.h
- /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-qt/src/YQInputField.cc