#include <pagespace.h>
Public Slots | |
| void | setText (const QString &text) |
Signals | |
| void | lostFocus (const QString &text) |
| void | returnPressed (const QString &text) |
| void | escape () |
Public Member Functions | |
| TextLine () | |
| ~TextLine () | |
Protected Member Functions | |
| virtual void | keyReleaseEvent (QKeyEvent *e) |
Private Slots | |
| void | lostFocus () |
| void | returnPressed () |
Private Attributes | |
| QLineEdit * | edit |
Class for showing (only) edit line.
| gui::TextLine::TextLine | ( | ) |
Standard constructor.
References edit, lostFocus(), and returnPressed().
| gui::TextLine::~TextLine | ( | ) |
Standard destructor.
| void gui::TextLine::escape | ( | ) | [signal] |
Signal emited if press escape in edit line.
Referenced by keyReleaseEvent().
| void gui::TextLine::keyReleaseEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
Method is call if release key event (see Qt::QWidget::keyReleaseEvent)
| e | Pointer to key event (see Qt::QKeyEvent). |
Esc and Delete key functionality is implemented.
References escape(), lostFocus(), and returnPressed().
| void gui::TextLine::lostFocus | ( | ) | [private, slot] |
On this slot is connected same named signal from edit line. Emit lostFocus(QString &)
References edit, and returnPressed().
Referenced by keyReleaseEvent(), returnPressed(), and TextLine().
| void gui::TextLine::lostFocus | ( | const QString & | text | ) | [signal] |
Signal emited if edit line lost focus.
| text | Text which was typed to edit line |
| void gui::TextLine::returnPressed | ( | ) | [private, slot] |
On this slot is connected same named signal from edit line. Emit returnPressed(QString &)
References edit, and lostFocus().
Referenced by keyReleaseEvent(), lostFocus(), and TextLine().
| void gui::TextLine::returnPressed | ( | const QString & | text | ) | [signal] |
Signal emited if press return in edit line.
| text | Text which was typed to edit line |
| void gui::TextLine::setText | ( | const QString & | text | ) | [slot] |
Set text to edit line.
| text | Text to set. |
References edit.
Referenced by gui::PageSpace::getTextLine().
QLineEdit* gui::TextLine::edit [private] |
Pointer to edit line widget.
Referenced by lostFocus(), returnPressed(), setText(), and TextLine().