QGIS API Documentation  2.6.0-Brighton
 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)
void setNullValue (QString nullValue)
QString nullValue () const
void setValue (QString value)
 Sets the current text with NULL support.
QString value () const
 Returns the text of this edit with NULL support.
bool isNull () const
 Determine if the current text represents Null.

Protected Member Functions

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

Properties

QString nullValue

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.

Property Documentation

QString QgsFilterLineEdit::nullValue
readwrite

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