mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-02 00:02:12 -05:00
clear value on clear in case the value is the null representator (null)
This commit is contained in:
parent
a02fb08290
commit
f44af04b5f
@ -107,6 +107,8 @@ void QgsDoubleSpinBox::changed( double value )
|
||||
void QgsDoubleSpinBox::clear()
|
||||
{
|
||||
setValue( clearValue() );
|
||||
if ( mLineEdit->isNull() )
|
||||
mLineEdit->clear();
|
||||
}
|
||||
|
||||
void QgsDoubleSpinBox::setClearValue( double customValue, const QString &specialValueText )
|
||||
|
@ -104,6 +104,8 @@ void QgsSpinBox::changed( int value )
|
||||
void QgsSpinBox::clear()
|
||||
{
|
||||
setValue( clearValue() );
|
||||
if ( mLineEdit->isNull() )
|
||||
mLineEdit->clear();
|
||||
}
|
||||
|
||||
void QgsSpinBox::setClearValue( int customValue, const QString &specialValueText )
|
||||
|
Loading…
x
Reference in New Issue
Block a user