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.
 
 ~ClearableLineEdit () override
 Destructor.
 

Protected Member Functions

void resizeEvent (QResizeEvent *) override
 This event handler is implemented to receive widget resize events which are passed in the event parameter.
 

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

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

◆ ~ClearableLineEdit()

~ClearableLineEdit ( )
override

Destructor.

Destroys the clearable line edit.

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();

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