#include <YQMultiLineEdit.h>
MultiLineEdit - an input area for multi-line text.
◆ YQMultiLineEdit()
YQMultiLineEdit::YQMultiLineEdit |
( |
YWidget * | parent, |
|
|
const std::string & | label ) |
◆ ~YQMultiLineEdit()
YQMultiLineEdit::~YQMultiLineEdit |
( |
| ) |
|
|
virtual |
◆ changed
void YQMultiLineEdit::changed |
( |
| ) |
|
|
protectedslot |
Triggered when the text changes.
◆ enforceMaxInputLength
void YQMultiLineEdit::enforceMaxInputLength |
( |
| ) |
|
|
protectedslot |
Enforce the maximum input length: If the text becomes too long, remove the just-entered character at the current cursor position.
Note that this is a lot more user friendly than silently truncating at the end of the text: In the latter case, chances are that the user never gets to know that text was truncated. Removing the just-typed character OTOH is something he will notice very quickly.
◆ preferredHeight()
int YQMultiLineEdit::preferredHeight |
( |
| ) |
|
|
virtual |
Preferred height of the widget.
Reimplemented from YWidget.
◆ preferredWidth()
int YQMultiLineEdit::preferredWidth |
( |
| ) |
|
|
virtual |
Preferred width of the widget.
Reimplemented from YWidget.
◆ setEnabled()
void YQMultiLineEdit::setEnabled |
( |
bool | enabled | ) |
|
|
virtual |
Set enabled/disabled state.
Reimplemented from YWidget.
◆ setInputMaxLength()
void YQMultiLineEdit::setInputMaxLength |
( |
int | numberOfChars | ) |
|
|
virtual |
Set the maximum input length, i.e., the maximum number of characters the user can enter. -1 means no limit.
Reimplemented from YMultiLineEdit.
◆ setKeyboardFocus()
bool YQMultiLineEdit::setKeyboardFocus |
( |
| ) |
|
|
virtual |
Accept the keyboard focus.
◆ setLabel()
void YQMultiLineEdit::setLabel |
( |
const std::string & | label | ) |
|
|
virtual |
Set the label (the caption above the MultiLineEdit).
Reimplemented from YMultiLineEdit.
◆ setSize()
void YQMultiLineEdit::setSize |
( |
int | newWidth, |
|
|
int | newHeight ) |
|
virtual |
Set the new size of the widget.
Reimplemented from YWidget.
◆ setValue()
void YQMultiLineEdit::setValue |
( |
const std::string & | text | ) |
|
|
virtual |
Set the current value (the text entered by the user or set from the outside) of this MultiLineEdit.
Implemented from YMultiLineEdit.
◆ value()
string YQMultiLineEdit::value |
( |
| ) |
|
|
virtual |
Get the current value (the text entered by the user or set from the outside) of this MultiLineEdit.
Implemented from YMultiLineEdit.
The documentation for this class was generated from the following files:
- /builddir/build/BUILD/libyui-4.6.0/libyui-qt/src/YQMultiLineEdit.h
- /builddir/build/BUILD/libyui-4.6.0/libyui-qt/src/YQMultiLineEdit.cc