Lineedit with builtin clear button.
More...
#include <qgsfilterlineedit.h>
Signals |
void | cleared () |
void | valueChanged (const QString &value) |
| Same as textChanged(const QString& ) but with support for Null values.
|
Detailed Description
Lineedit with builtin clear button.
Definition at line 28 of file qgsfilterlineedit.h.
Constructor & Destructor Documentation
QgsFilterLineEdit::QgsFilterLineEdit |
( |
QWidget * |
parent = 0 , |
|
|
QString |
nullValue = QString::null |
|
) |
| |
Member Function Documentation
void QgsFilterLineEdit::changeEvent |
( |
QEvent * |
e | ) |
|
|
overrideprotected |
void QgsFilterLineEdit::cleared |
( |
| ) |
|
|
signal |
void QgsFilterLineEdit::focusInEvent |
( |
QFocusEvent * |
e | ) |
|
|
overrideprotected |
bool QgsFilterLineEdit::isNull |
( |
| ) |
const |
|
inline |
Determine if the current text represents Null.
- Returns
- True if the value is Null.
Definition at line 59 of file qgsfilterlineedit.h.
void QgsFilterLineEdit::mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
overrideprotected |
QString QgsFilterLineEdit::nullValue |
( |
| ) |
const |
|
inline |
void QgsFilterLineEdit::paintEvent |
( |
QPaintEvent * |
e | ) |
|
|
overrideprotected |
void QgsFilterLineEdit::resizeEvent |
( |
QResizeEvent * |
e | ) |
|
|
overrideprotected |
void QgsFilterLineEdit::setNullValue |
( |
QString |
nullValue | ) |
|
|
inline |
void QgsFilterLineEdit::setValue |
( |
QString |
value | ) |
|
|
inline |
Sets the current text with NULL support.
- Parameters
-
value | The text to set. If a Null string is provided, the text will match the nullValue. |
Definition at line 45 of file qgsfilterlineedit.h.
QString QgsFilterLineEdit::value |
( |
| ) |
const |
|
inline |
Returns the text of this edit with NULL support.
- Returns
- Current text (Null string if it matches the nullValue property )
Definition at line 52 of file qgsfilterlineedit.h.
void QgsFilterLineEdit::valueChanged |
( |
const QString & |
value | ) |
|
|
signal |
Same as textChanged(const QString& ) but with support for Null values.
- Parameters
-
value | The current text or Null string if it matches the nullValue property. |
Property Documentation
QString QgsFilterLineEdit::nullValue |
|
readwrite |
The documentation for this class was generated from the following files: