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@5916 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Oct 6, 2006
1 parent eadd9b1 commit 7affb8f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/providers/delimitedtext/qgsdelimitedtextprovider.cpp
Original file line number Diff line number Diff line change
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 7affb8f

Please sign in to comment.