gui::TextLine Class Reference

#include <pagespace.h>

List of all members.

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

Detailed Description

Class for showing (only) edit line.


Constructor & Destructor Documentation

gui::TextLine::TextLine (  ) 

Standard constructor.

References edit, lostFocus(), and returnPressed().

gui::TextLine::~TextLine (  ) 

Standard destructor.


Member Function Documentation

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)

Parameters:
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.

Parameters:
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.

Parameters:
text Text which was typed to edit line
void gui::TextLine::setText ( const QString &  text  )  [slot]

Set text to edit line.

Parameters:
text Text to set.

References edit.

Referenced by gui::PageSpace::getTextLine().


Member Data Documentation

QLineEdit* gui::TextLine::edit [private]

Pointer to edit line widget.

Referenced by lostFocus(), returnPressed(), setText(), and TextLine().


The documentation for this class was generated from the following files: