File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,11 @@ void QgsTextEditWrapper::initWidget( QWidget* editor )
95
95
mLineEdit ->setValidator ( new QgsFieldValidator ( mLineEdit , field () ) );
96
96
97
97
QgsFilterLineEdit *fle = qobject_cast<QgsFilterLineEdit*>( mLineEdit );
98
- if ( fle && !( field ().type () == QVariant::Int || field ().type () == QVariant::Double || field ().type () == QVariant::LongLong || field ().type () == QVariant::Date ) )
98
+ if ( field ().type () == QVariant::Int || field ().type () == QVariant::Double || field ().type () == QVariant::LongLong || field ().type () == QVariant::Date )
99
+ {
100
+ mLineEdit ->setPlaceholderText ( QSettings ().value ( " qgis/nullValue" , " NULL" ).toString () );
101
+ }
102
+ else if ( fle )
99
103
{
100
104
fle->setNullValue ( QSettings ().value ( " qgis/nullValue" , " NULL" ).toString () );
101
105
}
You can’t perform that action at this time.
0 commit comments