The class XinxLineEdit provides a line edit with a clear button. More...

#include <xinxlineedit.h>

Inheritance diagram for XinxLineEdit:

List of all members.

Signals

void clearButtonClicked ()
 Emitted when the user clicked on the clear button.

Public Member Functions

 XinxLineEdit (const QString &string, QWidget *parent=0)
 Constructs a XinxLineEdit object with a default text, a parent, and a name.
 XinxLineEdit (QWidget *parent=0)
 Constructs a line edit.
virtual ~XinxLineEdit ()
 Destroys the object.

Protected Member Functions

virtual void resizeEvent (QResizeEvent *)
virtual void mousePressEvent (QMouseEvent *)
virtual void mouseReleaseEvent (QMouseEvent *)

Detailed Description

The class XinxLineEdit provides a line edit with a clear button.

Since:
0.9.0.0

QLineEdit with an include button to clear the line edit.This class is inspired from the class of the KDE project.

xinxlineedit.png

Constructor & Destructor Documentation

XinxLineEdit::XinxLineEdit ( const QString string,
QWidget parent = 0 
) [explicit]

Constructs a XinxLineEdit object with a default text, a parent, and a name.

Parameters:
string Text to be shown in the edit widget.
parent The parent widget of the line edit.
XinxLineEdit::XinxLineEdit ( QWidget parent = 0  )  [explicit]

Constructs a line edit.

Parameters:
parent The parent widget of the line edit.
XinxLineEdit::~XinxLineEdit (  )  [virtual]

Destroys the object.


Member Function Documentation

void XinxLineEdit::clearButtonClicked (  )  [signal]

Emitted when the user clicked on the clear button.

void XinxLineEdit::mousePressEvent ( QMouseEvent e  )  [protected, virtual]

Re-implemented for internal reasons. API not affected.

See also:
QLineEdit::mousePressEvent().

Reimplemented from QLineEdit.

void XinxLineEdit::mouseReleaseEvent ( QMouseEvent e  )  [protected, virtual]

Re-implemented for internal reasons. API not affected.

See also:
QLineEdit::mouseReleaseEvent().

Reimplemented from QLineEdit.

void XinxLineEdit::resizeEvent ( QResizeEvent ev  )  [protected, virtual]

Re-implemented for internal reasons. API not affected.

See also:
QLineEdit::resizeEvent().