Inheritance diagram for DzLineEdit:
Properties | |
AlignmentFlags | alignment |
Number | cursorPosition |
Boolean | frame |
String | inputMask |
Number | maxLength |
Boolean | modified |
Boolean | readOnly |
String | text |
Methods | |
void | backspace () |
void | clear () |
void | copy () |
void | cursorBackward (Boolean mark, Number steps=1) |
void | cursorForward (Boolean mark, Number steps=1) |
void | cursorWordBackward (Boolean mark) |
void | cursorWordForward (Boolean mark) |
void | cut () |
void | del () |
void | deselect () |
void | end (Boolean mark) |
Boolean | hasSelectedText () |
void | home (Boolean mark) |
void | paste () |
void | selectAll () |
String | selectedText () |
Number | selectionStart () |
void | setSelection (Number start, Number length) |
Constructors | |
DzLineEdit (DzWidget parent) | |
Signals | |
void | lostFocus () |
Signature: "lostFocus()" | |
void | returnPressed () |
Signature: "returnPressed()" | |
void | selectionChanged () |
Signature: "selectionChanged()" | |
void | textChanged (String text) |
Signature: "textChanged(const QString&)" |
This class provides a single line text editor.
DzLineEdit::DzLineEdit | ( | DzWidget | parent | ) |
Creates label with the given parent widget
void DzLineEdit::backspace | ( | ) |
If text is currently selected, it will be deleted and the cursor moved to the beginning of the selection. If no text is selected, the cursor will be moved one character to the left and the character will be deleted.
void DzLineEdit::clear | ( | ) |
Clears the text in the line edit.
void DzLineEdit::copy | ( | ) |
Copies the selected text into the clipboard.
Moves the cursor backward the given number of characters.
mark | If true, each character that is stepped over will be added to the current selection. | |
steps | The number of characters to move the cursor. |
Moves the cursor forward the given number of characters.
mark | If true, each character that is stepped over will be added to the current selection. | |
steps | The number of characters to move the cursor. |
void DzLineEdit::cursorWordBackward | ( | Boolean | mark | ) |
Moves the cursor backward one word.
mark | If true, the word will be added to the current selection. |
void DzLineEdit::cursorWordForward | ( | Boolean | mark | ) |
Moves the cursor forward one word.
mark | If true, the word will be added to the current selection. |
void DzLineEdit::cut | ( | ) |
Copies the selected text into the clipboard, and removes it from the line.
void DzLineEdit::del | ( | ) |
If text is currently selected, it will be deleted and the cursor moved to the beginning of the selection. If no text is selected, the character to the right of the cursor will be deleted.
void DzLineEdit::deselect | ( | ) |
Clears any selection in the line edit.
void DzLineEdit::end | ( | Boolean | mark | ) |
Moves the cursor to the end of the line.
mark | If true, the text from the end of the line to the cursor's previous position will be added to the current selection. |
Boolean DzLineEdit::hasSelectedText | ( | ) |
void DzLineEdit::home | ( | Boolean | mark | ) |
Moves the cursor to the beginning of the line.
mark | If true, the text from the beginning of the line to the cursor's previous position will be added to the current selection. |
void DzLineEdit::lostFocus | ( | ) | [signal] |
Signature: "lostFocus()"
Emitted when the line edit loses focus.
void DzLineEdit::paste | ( | ) |
Inserts any text on the clipbaord into the line at the cursor's current position.
void DzLineEdit::returnPressed | ( | ) | [signal] |
Signature: "returnPressed()"
Emitted when the user presses return in the line edit.
void DzLineEdit::selectAll | ( | ) |
Selects all the text in the line edit.
String DzLineEdit::selectedText | ( | ) |
void DzLineEdit::selectionChanged | ( | ) | [signal] |
Signature: "selectionChanged()"
Emitted when the selected text in the line edit changes.
Number DzLineEdit::selectionStart | ( | ) |
Sets the selected portion of the text in the line edit.
void DzLineEdit::textChanged | ( | String | text | ) | [signal] |
Signature: "textChanged(const QString&)"
Emitted when the text of the line edit changes, passes the new text.
Holds the alignment of the text displayed in the line edit.
Holds the position of the cursor in the line edit.
bool DzLineEdit::frame |
Holds whether or not the line edit is drawn with a frame.
QString DzLineEdit::inputMask |
Holds the input mask for the line edit. Set this to an empty string to clear the input mask.
Holds the maximum lenght of the text in the line edit.
bool DzLineEdit::modified |
Holds whether or not the text in the line edit has been modified. (Read Only)
bool DzLineEdit::readOnly |
Holds whether or not the text in the line edit can be edited by the user.
QString DzLineEdit::text |
Holds the text displayed in the line edit.