@@ -54,7 +54,7 @@ QVariantMap QgsValueMapConfigDlg::config()
54
54
55
55
QString ks = ki->text ();
56
56
if (( ks == QgsApplication::nullRepresentation () ) && !( ki->flags () & Qt::ItemIsEditable ) )
57
- ks = VALUEMAP_NULL_TEXT ;
57
+ ks = QgsValueMapFieldFormatter::NullValue ;
58
58
59
59
if ( !vi || vi->text ().isNull () )
60
60
{
@@ -137,7 +137,7 @@ void QgsValueMapConfigDlg::updateMap( const QMap<QString, QVariant> &map, bool i
137
137
138
138
if ( insertNull )
139
139
{
140
- setRow ( row, VALUEMAP_NULL_TEXT , QStringLiteral ( " <NULL>" ) );
140
+ setRow ( row, QgsValueMapFieldFormatter::NullValue , QStringLiteral ( " <NULL>" ) );
141
141
++row;
142
142
}
143
143
@@ -156,7 +156,7 @@ void QgsValueMapConfigDlg::setRow( int row, const QString& value, const QString&
156
156
QTableWidgetItem* valueCell;
157
157
QTableWidgetItem* descriptionCell = new QTableWidgetItem ( description );
158
158
tableWidget->insertRow ( row );
159
- if ( value == VALUEMAP_NULL_TEXT )
159
+ if ( value == QgsValueMapFieldFormatter::NullValue )
160
160
{
161
161
QFont cellFont;
162
162
cellFont.setItalic ( true );
@@ -175,7 +175,7 @@ void QgsValueMapConfigDlg::setRow( int row, const QString& value, const QString&
175
175
176
176
void QgsValueMapConfigDlg::addNullButtonPushed ()
177
177
{
178
- setRow ( tableWidget->rowCount () - 1 , VALUEMAP_NULL_TEXT , QStringLiteral ( " <NULL>" ) );
178
+ setRow ( tableWidget->rowCount () - 1 , QgsValueMapFieldFormatter::NullValue , QStringLiteral ( " <NULL>" ) );
179
179
}
180
180
181
181
void QgsValueMapConfigDlg::loadFromLayerButtonPushed ()
@@ -248,7 +248,7 @@ void QgsValueMapConfigDlg::loadFromCSVButtonPushed()
248
248
}
249
249
250
250
if ( key == QgsApplication::nullRepresentation () )
251
- key = VALUEMAP_NULL_TEXT ;
251
+ key = QgsValueMapFieldFormatter::NullValue ;
252
252
253
253
map[ key ] = val;
254
254
}
0 commit comments