Skip to content
Permalink
Browse files

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

  • Loading branch information
signedav committed Nov 8, 2018
1 parent a02fb08 commit f44af04b5f90acd8eac78904cbdb0fcb5f0c8252
Showing with 4 additions and 0 deletions.
  1. +2 −0 src/gui/editorwidgets/qgsdoublespinbox.cpp
  2. +2 −0 src/gui/editorwidgets/qgsspinbox.cpp
@@ -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 )

0 comments on commit f44af04

Please sign in to comment.
You can’t perform that action at this time.