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

Lineedit with builtin clear button. More...

#include <qgsfilterlineedit.h>

Inheritance diagram for QgsFilterLineEdit:
Inheritance graph
[legend]

Signals

void cleared ()
 
void valueChanged (const QString &value)
 Same as textChanged(const QString& ) but with support for Null values. More...
 

Public Member Functions

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

Protected Member Functions

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

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)
protected

Definition at line 83 of file qgsfilterlineedit.cpp.

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

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)
protected

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)
protected

Definition at line 89 of file qgsfilterlineedit.cpp.

void QgsFilterLineEdit::resizeEvent ( QResizeEvent *  e)
protected

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.

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