mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-24 00:06:24 -04:00
fix in listwidgetfactory and set method of ogrprovider to const not changing class values
This commit is contained in:
parent
a62867db5b
commit
386c16fd1a
@ -44,5 +44,5 @@ QgsEditorConfigWidget *QgsListWidgetFactory::configWidget( QgsVectorLayer *vl, i
|
||||
unsigned int QgsListWidgetFactory::fieldScore( const QgsVectorLayer *vl, int fieldIdx ) const
|
||||
{
|
||||
const QgsField field = vl->fields().field( fieldIdx );
|
||||
return ( field.type() == QVariant::List || field.type() == QVariant::StringList || QVariant::Map ) && field.subType() != QVariant::Invalid ? 20 : 0;
|
||||
return ( field.type() == QVariant::List || field.type() == QVariant::StringList || field.type() == QVariant::Map ) && field.subType() != QVariant::Invalid ? 20 : 0;
|
||||
}
|
||||
|
@ -1408,7 +1408,7 @@ OGRGeometryH QgsOgrProvider::ConvertGeometryIfNecessary( OGRGeometryH hGeom )
|
||||
return OGR_G_ForceTo( hGeom, layerGeomType, nullptr );
|
||||
}
|
||||
|
||||
QString QgsOgrProvider::jsonStringValue( const QVariant &value, const QVariant::Type &type )
|
||||
QString QgsOgrProvider::jsonStringValue( const QVariant &value, const QVariant::Type &type ) const
|
||||
{
|
||||
switch ( type )
|
||||
{
|
||||
|
@ -285,7 +285,7 @@ class QgsOgrProvider : public QgsVectorDataProvider
|
||||
mutable QStringList mSubLayerList;
|
||||
|
||||
//! converts \a value from json QVariant to QString regarding to \a type
|
||||
QString jsonStringValue( const QVariant &value, const QVariant::Type &type );
|
||||
QString jsonStringValue( const QVariant &value, const QVariant::Type &type ) const;
|
||||
|
||||
bool addFeaturePrivate( QgsFeature &f, QgsFeatureSink::Flags flags );
|
||||
//! Deletes one feature
|
||||
|
Loading…
x
Reference in New Issue
Block a user