#include "aNiceLineEditWidget.h"
Signals | |
void | cursorPositionChanged (int, int) |
void | selectionChanged () |
void | keyPressed (QKeyEvent *) |
void | keyReleased (QKeyEvent *) |
void | editingFinished () |
void | textChanged (const QString &_text) |
void | returnPressed () |
Public Member Functions | |
aNiceLineEditWidget (const QString &_initialText, const QString &_infoLabelText) | |
virtual | ~aNiceLineEditWidget () |
virtual QWidget * | widget (void) override |
Will return the widgets widget to display it. | |
void | setText (const QString &_text) |
void | setErrorState (bool _error) |
void | setInfoLabelText (const QString &_text) |
void | setErrorStateIsForeground (bool _isForeground) |
Will set wather the error state will have an impact on the foreground or the background. | |
QString | text (void) const |
QString | infoLabelText (void) const |
Public Member Functions inherited from ak::aWidget | |
aWidget (objectType _type=otNone, UID _UID=invalidUID) | |
Constructor. | |
virtual | ~aWidget () |
Deconstructor. | |
virtual bool | isWidgetType (void) const override |
Returns true the object is derived from aWidget. | |
Public Member Functions inherited from ak::aObject | |
aObject (objectType _type=otNone, UID _UID=ak::invalidUID) | |
Constructor. | |
aObject (const aObject &_other) | |
Copy constructor. | |
aObject & | operator= (const aObject &_other) |
Assignment operator. | |
virtual | ~aObject () |
Deconstructor. | |
virtual void | removeChildObject (aObject *_child) |
Will remove the child from this object (not destroy it) This function should be called from the deconstructor of a child. | |
virtual void | addChildObject (aObject *_child) |
Will add the child to this object. | |
void | setUniqueName (const QString &_name) |
Will set this objects unique name. | |
virtual void | setParentObject (aObject *_parentObject) |
Will set the parent object of this object. | |
QString | uniqueName (void) const |
Will return the unique name of this object. | |
aObject * | parentObject (void) const |
Will return a pointer to the parent object. | |
int | childObjectCount (void) const |
Will return the count of sub objects. | |
aObject * | childObject (UID _childUID) |
Will return the child with the specified UID. | |
void | setOwner (aObject *_object) |
Will set the owner of this object. | |
aObject * | owner (void) const |
Will return the owner of this object. | |
void | setUid (UID _UID) |
Will set the objects UID. | |
UID | uid (void) const |
Returns the objects UID. | |
objectType | type (void) const |
Returns the objects type. | |
Additional Inherited Members | |
Protected Attributes inherited from ak::aObject | |
UID | m_uid |
int | m_references |
The objects UID. | |
objectType | m_objectType |
The objects references. | |
QString | m_uniqueName |
The object type of this object. | |
aObject * | m_parentObject |
aObject * | m_owner |
std::map< UID, aObject * > | m_childObjects |
ak::aNiceLineEditWidget::aNiceLineEditWidget | ( | const QString & | _initialText, |
const QString & | _infoLabelText ) |
|
virtual |
|
signal |
|
signal |
QString ak::aNiceLineEditWidget::infoLabelText | ( | void | ) | const |
|
signal |
|
signal |
|
signal |
|
signal |
void ak::aNiceLineEditWidget::setErrorState | ( | bool | _error | ) |
void ak::aNiceLineEditWidget::setErrorStateIsForeground | ( | bool | _isForeground | ) |
Will set wather the error state will have an impact on the foreground or the background.
_isForeground | If true, the error state will change the text foreground color, otherwise back and foreground |
void ak::aNiceLineEditWidget::setInfoLabelText | ( | const QString & | _text | ) |
void ak::aNiceLineEditWidget::setText | ( | const QString & | _text | ) |
QString ak::aNiceLineEditWidget::text | ( | void | ) | const |
|
signal |
|
overridevirtual |
Will return the widgets widget to display it.
Implements ak::aWidget.