Merge pull request #5658 from pblottiere/qurl_obsolete

[server] Fix obsolete QUrl method
This commit is contained in:
Blottiere Paul 2017-11-22 09:58:24 +00:00 committed by GitHub
commit 58bfbd51cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1154,7 +1154,7 @@ namespace QgsWms
layerName = currentLayer->id();
else if ( !currentLayer->shortName().isEmpty() )
layerName = currentLayer->shortName();
QUrl mapUrl( hrefString );
QUrlQuery mapUrl( hrefString );
mapUrl.addQueryItem( QStringLiteral( "SERVICE" ), QStringLiteral( "WMS" ) );
mapUrl.addQueryItem( QStringLiteral( "VERSION" ), version );
mapUrl.addQueryItem( QStringLiteral( "REQUEST" ), QStringLiteral( "GetLegendGraphic" ) );