|
This class is a custom QLineEdit which provides a button to clear the text of the line edit. More...
#include <MemoryX/gui-plugins/SceneEditor/gui/ClearableLineEdit.h>
Public Member Functions | |
ClearableLineEdit (QWidget *parent=0) | |
Constructor. More... | |
~ClearableLineEdit () override | |
Destructor. More... | |
Protected Member Functions | |
void | resizeEvent (QResizeEvent *) override |
This event handler is implemented to receive widget resize events which are passed in the event parameter. More... | |
This class is a custom QLineEdit which provides a button to clear the text of the line edit.
Inherited from QLineEdit.
Definition at line 41 of file ClearableLineEdit.h.
|
explicit |
Constructor.
Creates an instance of ClearableLineEdit by a given QWidget as parent. The parent argument is sent to the QWidget constructor. If no parent is given, the default parent is 0.
parent | parent widget |
Definition at line 29 of file ClearableLineEdit.cpp.
|
override |
|
overrideprotected |
This event handler is implemented to receive widget resize events which are passed in the event parameter.
When resizeEvent() is called, the widget already has its new geometry. The old size is accessible through Qt::QResizeEvent:oldSize().
Qt::QResizeEvent |
Definition at line 48 of file ClearableLineEdit.cpp.