Skip to content

Commit 7e7985d

Browse files
author
g_j_m
committed
Changed use of Q3Url to QUrl
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5917 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 6eb975b commit 7e7985d

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/providers/wms/qgswmsprovider.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
#include "qgshttptransaction.h"
3131

32-
#include <Q3Url>
32+
#include <QUrl>
3333

3434

3535
#ifdef QGISDEBUG
@@ -426,11 +426,9 @@ QImage* QgsWmsProvider::draw(QgsRect const & viewExtent, int pixelWidth, int pi
426426
#endif
427427

428428

429-
QString layers = visibleLayers.join(",");
430-
Q3Url::encode( layers );
429+
QString layers = QUrl::toPercentEncoding(visibleLayers.join(","));
431430

432-
QString styles = visibleStyles.join(",");
433-
Q3Url::encode( styles );
431+
QString styles = QUrl::toPercentEncoding(visibleStyles.join(","));
434432

435433

436434
// compose the URL query string for the WMS server.
@@ -2352,8 +2350,7 @@ QString QgsWmsProvider::identifyAsText(const QgsPoint& point)
23522350
}
23532351
}
23542352

2355-
QString layers = queryableLayers.join(",");
2356-
Q3Url::encode( layers );
2353+
QString layers = QUrl::toPercentEncoding(queryableLayers.join(","));
23572354

23582355
// Compose request to WMS server
23592356

0 commit comments

Comments
 (0)