ClearableLineEdit Class Reference

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>

+ Inheritance diagram for ClearableLineEdit:

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...
 

Detailed Description

This class is a custom QLineEdit which provides a button to clear the text of the line edit.

Inherited from QLineEdit.

See also
Qt::QLineEdit

Definition at line 41 of file ClearableLineEdit.h.

Constructor & Destructor Documentation

◆ ClearableLineEdit()

ClearableLineEdit ( QWidget *  parent = 0)
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.

Parameters
parentparent widget

Definition at line 29 of file ClearableLineEdit.cpp.

◆ ~ClearableLineEdit()

~ClearableLineEdit ( )
override

Destructor.

Destroys the clearable line edit.

Definition at line 62 of file ClearableLineEdit.cpp.

Member Function Documentation

◆ resizeEvent()

void resizeEvent ( QResizeEvent *  )
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().

Parameters
Qt::QResizeEvent
See also
Qt::QResizeEvent
Qt::QWidget:resizeEvent();

Definition at line 48 of file ClearableLineEdit.cpp.


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