qgis_bench json log fix; QGIS2 settings

This commit is contained in:
Radim Blazek 2013-04-08 09:55:06 +02:00
parent 082c6bae7d
commit 34adbe7f56
2 changed files with 2 additions and 2 deletions

View File

@ -363,7 +363,7 @@ int main( int argc, char *argv[] )
// Set up the QSettings environment must be done after qapp is created
QgsApplication::setOrganizationName( "QuantumGIS" );
QgsApplication::setOrganizationDomain( "qgis.org" );
QgsApplication::setApplicationName( "QGIS" );
QgsApplication::setApplicationName( "QGIS2" );
QgsProviderRegistry::instance( QgsApplication::pluginPath() );

View File

@ -299,7 +299,7 @@ QString QgsBench::serialize( QMap<QString, QVariant> theMap, int level )
list.append( space2 + "\"" + i.key() + "\": " + QString( "%1" ).arg( i.value().toDouble(), 0, 'f', 3 ) );
break;
case QMetaType::QString:
list.append( space2 + "\"" + i.key() + "\": \"" + i.value().toString() + "\"" );
list.append( space2 + "\"" + i.key() + "\": \"" + i.value().toString().replace("\\","\\\\").replace("\"","\\\"") + "\"" );
break;
//case QMetaType::QMap: QMap is not in QMetaType
default: