You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Author Name: Philippe Dorelon (Philippe Dorelon)
Original Redmine Issue: 9761
Affected QGIS version: 2.2.0
Integer values from spatialite files have QVariant:LongLong format in Qgis and it's impossible to use EditRange widget, value is always 0.
The problem is in qgsattributeeditor_8cpp_source.html, line 1210 : if ( myFieldType == QVariant::Int )
A solution is just to change with that : if ( myFieldType == QVariant::Int || myFieldType == QVariant::LongLong )
And there is a small issue in qgsattributedialog.cpp for linedit widget, line 407 :
switch ( value.type() )
{
case QVariant::Invalid: text = "NULL"; break;
case QVariant::Int: text = QString::number( value.toInt() ); break; //LongLong type to add case QVariant::LongLong: text = QString::number( value.toLongLong() ); break;
case QVariant::Double: text = QString::number( value.toDouble() ); break;
case QVariant::String:
default: text = value.toString();
}
The text was updated successfully, but these errors were encountered:
Author Name: Philippe Dorelon (Philippe Dorelon)
Original Redmine Issue: 9761
Affected QGIS version: 2.2.0
Integer values from spatialite files have QVariant:LongLong format in Qgis and it's impossible to use EditRange widget, value is always 0.
The problem is in qgsattributeeditor_8cpp_source.html, line 1210 : if ( myFieldType == QVariant::Int )
A solution is just to change with that : if ( myFieldType == QVariant::Int || myFieldType == QVariant::LongLong )
And there is a small issue in qgsattributedialog.cpp for linedit widget, line 407 :
switch ( value.type() )
{
case QVariant::Invalid: text = "NULL"; break;
case QVariant::Int: text = QString::number( value.toInt() ); break;
//LongLong type to add
case QVariant::LongLong: text = QString::number( value.toLongLong() ); break;
case QVariant::Double: text = QString::number( value.toDouble() ); break;
case QVariant::String:
default: text = value.toString();
}
The text was updated successfully, but these errors were encountered: