Skip to content
Permalink
Browse files

Formatted code

  • Loading branch information
vsklencar authored and wonder-sk committed Apr 8, 2019
1 parent f8e4331 commit 3c7a1608ed50a0d6eea29eacab8264231503e349
Showing with 9 additions and 9 deletions.
  1. +9 −9 src/quickgui/qgsquickutils.cpp
@@ -331,16 +331,16 @@ QString QgsQuickUtils::dumpScreenInfo() const
return msg;
}

QVariantMap QgsQuickUtils::createValueRelationCache(const QVariantMap &config, const QgsFeature &formFeature)
QVariantMap QgsQuickUtils::createValueRelationCache( const QVariantMap &config, const QgsFeature &formFeature )
{
QVariantMap valueMap;
QgsValueRelationFieldFormatter::ValueRelationCache cache = QgsValueRelationFieldFormatter::createCache(config, formFeature);

for ( const QgsValueRelationFieldFormatter::ValueRelationItem &item : qgis::as_const( cache ) )
{
valueMap.insert(item.key.toString(), item.value);
}
return valueMap;
QVariantMap valueMap;
QgsValueRelationFieldFormatter::ValueRelationCache cache = QgsValueRelationFieldFormatter::createCache( config, formFeature );

for ( const QgsValueRelationFieldFormatter::ValueRelationItem &item : qgis::as_const( cache ) )
{
valueMap.insert( item.key.toString(), item.value );
}
return valueMap;
}

qreal QgsQuickUtils::screenDensity() const

0 comments on commit 3c7a160

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