clear value on clear in case the value is the null representator (null)

This commit is contained in:
signedav 2018-11-08 17:51:41 +01:00
parent a02fb08290
commit f44af04b5f
2 changed files with 4 additions and 0 deletions

View File

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

View File

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