Input editor with extended functionality.
More...
#include <CExtLineEdit.h>
Inherits QLineEdit.
|
| 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 .
|
|
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.
◆ BaseClass
◆ 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.
◆ 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 |
◆ GetText()
virtual QString iwidgets::CExtLineEdit::GetText |
( |
| ) |
const |
|
virtual |
◆ 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: