Skip to content

Commit

Permalink
Move Q3Url code to QUrl
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5916 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Oct 6, 2006
1 parent 8c445c8 commit 6eb975b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/providers/delimitedtext/qgsdelimitedtextprovider.cpp
Expand Up @@ -28,7 +28,7 @@
#include <QMessageBox>
#include <QSettings>
#include <QRegExp>
#include <q3url.h>
#include <QUrl>

#include <ogrsf_frmts.h>

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 6eb975b

Please sign in to comment.