QwwResetLineEdit Class

The QwwResetLineEdit widget provides a line edit that has an embedded button for resetting the contents of the widget to its initial state. More...

Header: #include <QwwResetLineEdit>
Inherits: QwwButtonLineEdit.

Properties

Public Functions

QwwResetLineEdit(QWidget * parent = 0)
const QString & defaultText() const

Public Slots

void resetText()

Additional Inherited Members

Detailed Description

The QwwResetLineEdit widget provides a line edit that has an embedded button for resetting the contents of the widget to its initial state.

Property Documentation

defaultText : const QString

This property holds this property holds the default text of the widget.

The "default" text is one set using QLineEdit::setText(). The text that is put into the widget by the user (using keyboard) is considered modified and will be reset to the last text set programatically using setText().

Access functions:

const QString & defaultText() const

See also resetText() and QLineEdit::setText().

Member Function Documentation

QwwResetLineEdit::QwwResetLineEdit(QWidget * parent = 0)

Constructs a reset line edit with a given parent.

void QwwResetLineEdit::resetText() [slot]

Resets text to its initial state

See also defaultText.