QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Signals | Public Member Functions | Protected Member Functions | Properties | List of all members
QgsFilterLineEdit Class Reference

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.

Public Member Functions

 QgsFilterLineEdit (QWidget *parent=0, QString nullValue=QString::null)
bool isNull () const
 Determine if the current text represents Null.
QString nullValue () const
void setNullValue (QString nullValue)
void setValue (QString value)
 Sets the current text with NULL support.
QString value () const
 Returns the text of this edit with NULL support.

Protected Member Functions

void changeEvent (QEvent *e) override
void focusInEvent (QFocusEvent *e) override
void mousePressEvent (QMouseEvent *e) override
void paintEvent (QPaintEvent *e) override
void resizeEvent (QResizeEvent *e) override

Properties

QString nullValue

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 
)

Definition at line 25 of file qgsfilterlineedit.cpp.

Member Function Documentation

void QgsFilterLineEdit::changeEvent ( QEvent *  e)
overrideprotected

Definition at line 83 of file qgsfilterlineedit.cpp.

void QgsFilterLineEdit::cleared ( )
signal
void QgsFilterLineEdit::focusInEvent ( QFocusEvent *  e)
overrideprotected

Definition at line 59 of file qgsfilterlineedit.cpp.

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

Definition at line 51 of file qgsfilterlineedit.cpp.

QString QgsFilterLineEdit::nullValue ( ) const
inline

Definition at line 38 of file qgsfilterlineedit.h.

void QgsFilterLineEdit::paintEvent ( QPaintEvent *  e)
overrideprotected

Definition at line 89 of file qgsfilterlineedit.cpp.

void QgsFilterLineEdit::resizeEvent ( QResizeEvent *  e)
overrideprotected

Definition at line 69 of file qgsfilterlineedit.cpp.

void QgsFilterLineEdit::setNullValue ( QString  nullValue)
inline

Definition at line 36 of file qgsfilterlineedit.h.

void QgsFilterLineEdit::setValue ( QString  value)
inline

Sets the current text with NULL support.

Parameters
valueThe 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
valueThe current text or Null string if it matches the nullValue property.

Property Documentation

QString QgsFilterLineEdit::nullValue
readwrite

Definition at line 31 of file qgsfilterlineedit.h.


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