Public Types | Public Member Functions | Protected Member Functions | List of all members
iwidgets::CExtLineEdit Class Reference

Input editor with extended functionality. More...

#include <CExtLineEdit.h>

Inheritance diagram for iwidgets::CExtLineEdit:

Public Types

typedef QLineEdit BaseClass
 

Public Member Functions

 CExtLineEdit (QWidget *parent=NULL)
 
 CExtLineEdit (const QString &startupText, int margins, QWidget *parent=NULL)
 Construct a line edit with the given properties. More...
 
virtual void SetStartupText (const QString &startupText)
 Set the text, that will be shown at the first time the editor becomes visible. More...
 
virtual QString GetStartupText () const
 Get the startup text. More...
 
virtual QString GetText () const
 Get editor text. More...
 
void SetIcon (const QIcon &icon)
 Set the icon, that will appeared on the left side of the line edit. More...
 
void AddWidget (QWidget *widgetPtr, int alignmentFlags)
 Add a widget to the line edit area according to alginmentFlags. More...
 

Protected Member Functions

virtual void resizeEvent (QResizeEvent *resizeEvent)
 
virtual void focusInEvent (QFocusEvent *focusEvent)
 

Detailed Description

Input editor with extended functionality.

It's possible to add an icon to the edit field or insert additional widgets (e.g control buttons) into the view.

Definition at line 31 of file CExtLineEdit.h.

Member Typedef Documentation

Definition at line 36 of file CExtLineEdit.h.

Constructor & Destructor Documentation

iwidgets::CExtLineEdit::CExtLineEdit ( QWidget *  parent = NULL)
explicit
iwidgets::CExtLineEdit::CExtLineEdit ( const QString &  startupText,
int  margins,
QWidget *  parent = NULL 
)

Construct a line edit with the given properties.

Member Function Documentation

void iwidgets::CExtLineEdit::AddWidget ( QWidget *  widgetPtr,
int  alignmentFlags 
)

Add a widget to the line edit area according to alginmentFlags.

Only Qt::AlignLeft and Qt::AlignRight are possible.

Note
CExtLineEdit get the control over the widget object.
virtual void iwidgets::CExtLineEdit::focusInEvent ( QFocusEvent *  focusEvent)
protectedvirtual
virtual QString iwidgets::CExtLineEdit::GetStartupText ( ) const
virtual

Get the startup text.

virtual QString iwidgets::CExtLineEdit::GetText ( ) const
virtual

Get editor text.

virtual void iwidgets::CExtLineEdit::resizeEvent ( QResizeEvent *  resizeEvent)
protectedvirtual
void iwidgets::CExtLineEdit::SetIcon ( const QIcon &  icon)

Set the icon, that will appeared on the left side of the line edit.

virtual void iwidgets::CExtLineEdit::SetStartupText ( const QString &  startupText)
virtual

Set the text, that will be shown at the first time the editor becomes visible.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy