ICF 3.0.5.47
Technical documentation of ICF Libraries
iwidgets::CExtLineEdit Class Reference

Input editor with extended functionality. More...

#include <CExtLineEdit.h>

Inherits QLineEdit.

Collaboration diagram for iwidgets::CExtLineEdit:

Public Types

typedef QLineEdit BaseClass
 

Public Member Functions

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

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 29 of file CExtLineEdit.h.

Member Typedef Documentation

◆ BaseClass

Definition at line 34 of file CExtLineEdit.h.

Constructor & Destructor Documentation

◆ CExtLineEdit() [1/2]

iwidgets::CExtLineEdit::CExtLineEdit ( QWidget * parent = nullptr)
explicit

◆ CExtLineEdit() [2/2]

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

Construct a line edit with the given properties.

Member Function Documentation

◆ AddWidget()

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.

◆ focusInEvent()

virtual void iwidgets::CExtLineEdit::focusInEvent ( QFocusEvent * focusEvent)
protectedvirtual

◆ GetStartupText()

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

Get the startup text.

◆ GetText()

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

Get editor text.

◆ resizeEvent()

virtual void iwidgets::CExtLineEdit::resizeEvent ( QResizeEvent * resizeEvent)
protectedvirtual

◆ SetIcon()

void iwidgets::CExtLineEdit::SetIcon ( const QIcon & icon)

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

◆ SetStartupText()

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:

© Witold Gantzke and Kirill Lepskiy