mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Move Q3Url code to QUrl
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5916 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
8c445c8244
commit
6eb975b458
@ -28,7 +28,7 @@
|
||||
#include <QMessageBox>
|
||||
#include <QSettings>
|
||||
#include <QRegExp>
|
||||
#include <q3url.h>
|
||||
#include <QUrl>
|
||||
|
||||
#include <ogrsf_frmts.h>
|
||||
|
||||
@ -73,10 +73,10 @@ QgsDelimitedTextProvider::QgsDelimitedTextProvider(QString const &uri)
|
||||
temp = parameters.grep("yField=");
|
||||
mYField = temp.size()? temp[0].mid(temp[0].find("=") + 1) : "";
|
||||
// Decode the parts of the uri. Good if someone entered '=' as a delimiter, for instance.
|
||||
Q3Url::decode(mFileName);
|
||||
Q3Url::decode(mDelimiter);
|
||||
Q3Url::decode(mXField);
|
||||
Q3Url::decode(mYField);
|
||||
mFileName = QUrl::fromPercentEncoding(mFileName.toUtf8());
|
||||
mDelimiter = QUrl::fromPercentEncoding(mDelimiter.toUtf8());
|
||||
mXField = QUrl::fromPercentEncoding(mXField.toUtf8());
|
||||
mYField = QUrl::fromPercentEncoding(mYField.toUtf8());
|
||||
#ifdef QGISDEBUG
|
||||
std::cerr << "Data source uri is " << (const char *)uri.toLocal8Bit().data() << std::endl;
|
||||
std::cerr << "Delimited text file is: " << (const char *)mFileName.toLocal8Bit().data() << std::endl;
|
||||
|
Loading…
x
Reference in New Issue
Block a user