QGIS API Documentation  2.5.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)
 
void setNullValue (QString nullValue)
 
QString nullValue () const
 
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...
 
bool isNull () const
 Determine if the current text represents Null. More...
 

Protected Member Functions

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

Detailed Description

Lineedit with builtin clear button.

Constructor & Destructor Documentation

QgsFilterLineEdit::QgsFilterLineEdit ( QWidget *  parent = 0,
QString  nullValue = QString::null 
)

Member Function Documentation

void QgsFilterLineEdit::changeEvent ( QEvent *  e)
protected
void QgsFilterLineEdit::cleared ( )
signal
void QgsFilterLineEdit::focusInEvent ( QFocusEvent *  e)
protected
bool QgsFilterLineEdit::isNull ( ) const
inline

Determine if the current text represents Null.

Returns
True if the value is Null.
void QgsFilterLineEdit::mousePressEvent ( QMouseEvent *  e)
protected
QString QgsFilterLineEdit::nullValue ( ) const
inline
void QgsFilterLineEdit::paintEvent ( QPaintEvent *  e)
protected
void QgsFilterLineEdit::resizeEvent ( QResizeEvent *  e)
protected
void QgsFilterLineEdit::setNullValue ( QString  nullValue)
inline
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.
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 )
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: