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

Lineedit with builtin clear button. More...

#include <qgsfilterlineedit.h>

Signals

void cleared ()

Public Member Functions

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

Protected Member Functions

void resizeEvent (QResizeEvent *)
void changeEvent (QEvent *)

Private Slots

void clear ()
void toggleClearButton (const QString &text)

Private Attributes

QString mNullValue
QToolButton * btnClear

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

Definition at line 63 of file qgsfilterlineedit.cpp.

References btnClear, and mNullValue.

void QgsFilterLineEdit::clear ( )
privateslot

Definition at line 57 of file qgsfilterlineedit.cpp.

References mNullValue.

Referenced by QgsFilterLineEdit().

void QgsFilterLineEdit::cleared ( )
signal

Referenced by QgsFilterLineEdit().

void QgsFilterLineEdit::resizeEvent ( QResizeEvent *  )
protected

Definition at line 49 of file qgsfilterlineedit.cpp.

References btnClear.

void QgsFilterLineEdit::setNullValue ( QString  nullValue)
inline

Definition at line 34 of file qgsfilterlineedit.h.

Referenced by QgsAttributeEditor::setValue().

void QgsFilterLineEdit::toggleClearButton ( const QString &  text)
privateslot

Definition at line 72 of file qgsfilterlineedit.cpp.

References btnClear, and mNullValue.

Referenced by QgsFilterLineEdit().

Member Data Documentation

QToolButton* QgsFilterLineEdit::btnClear
private

Definition at line 49 of file qgsfilterlineedit.h.

Referenced by changeEvent(), QgsFilterLineEdit(), resizeEvent(), and toggleClearButton().

QString QgsFilterLineEdit::mNullValue
private

Definition at line 48 of file qgsfilterlineedit.h.

Referenced by changeEvent(), clear(), and toggleClearButton().


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