mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
Sip update and const correctness
This commit is contained in:
parent
443fa8cc92
commit
0d9683e419
@ -9,14 +9,35 @@ class QgsFilterLineEdit : QLineEdit
|
||||
public:
|
||||
QgsFilterLineEdit( QWidget* parent = 0 );
|
||||
|
||||
void setNullValue( QString nullValue );
|
||||
|
||||
QString nullValue() const;
|
||||
/**
|
||||
* Sets the current text with NULL support
|
||||
*
|
||||
* @param value The text to set. If a Null string is provided, the text will match the nullValue.
|
||||
*/
|
||||
void setValue( QString value );
|
||||
|
||||
/**
|
||||
* Returns the text of this edit with NULL support
|
||||
*
|
||||
* @return Current text (Null string if it matches the nullValue property )
|
||||
*/
|
||||
QString value() const;
|
||||
|
||||
/**
|
||||
* Determine if the current text represents Null.
|
||||
*
|
||||
* @return True if the value is Null.
|
||||
*/
|
||||
bool isNull() const;
|
||||
|
||||
signals:
|
||||
void cleared();
|
||||
|
||||
protected:
|
||||
void resizeEvent( QResizeEvent * );
|
||||
void changeEvent( QEvent * );
|
||||
/**
|
||||
* Same as textChanged(const QString& ) but with support for Null values.
|
||||
*
|
||||
* @param value The current text or Null string if it matches the nullValue property.
|
||||
*/
|
||||
void valueChanged( const QString& value );
|
||||
|
||||
};
|
||||
|
@ -49,14 +49,14 @@ class GUI_EXPORT QgsFilterLineEdit : public QLineEdit
|
||||
*
|
||||
* @return Current text (Null string if it matches the nullValue property )
|
||||
*/
|
||||
QString value() { return isNull() ? QString::null : text(); }
|
||||
QString value() const { return isNull() ? QString::null : text(); }
|
||||
|
||||
/**
|
||||
* Determine if the current text represents Null.
|
||||
*
|
||||
* @return True if the value is Null.
|
||||
*/
|
||||
inline bool isNull() { return text() == mNullValue; }
|
||||
inline bool isNull() const { return text() == mNullValue; }
|
||||
|
||||
signals:
|
||||
void cleared();
|
||||
|
Loading…
x
Reference in New Issue
Block a user