diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2011-10-20 01:23:14 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-30 01:19:59 +0200 |
commit | 8cf66c3bc4482bbefad90ce7ad34ac6c3de8478f (patch) | |
tree | 4e695f4733ab07310039d81dd4935a548a48a471 /src/corelib/io/qurlquery.h | |
parent | f40e934983f0b6685c25472e3cd2764cd177e1e7 (diff) | |
download | qtbase-8cf66c3bc4482bbefad90ce7ad34ac6c3de8478f.tar.gz |
Add QUrl::setQuery overload with QUrlQuery
Change-Id: I0cba92b6bf7f848f1918383b380c0444b8bead3a
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/corelib/io/qurlquery.h')
-rw-r--r-- | src/corelib/io/qurlquery.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/io/qurlquery.h b/src/corelib/io/qurlquery.h index 3e0baa32bc..ff66298dfa 100644 --- a/src/corelib/io/qurlquery.h +++ b/src/corelib/io/qurlquery.h @@ -116,9 +116,9 @@ Q_DECLARE_SHARED(QUrlQuery) #if QT_DEPRECATED_SINCE(5,0) inline void QUrl::setQueryItems(const QList<QPair<QString, QString> > &qry) -{ QUrlQuery q(*this); q.setQueryItems(qry); setQuery(q.query()); } +{ QUrlQuery q(*this); q.setQueryItems(qry); setQuery(q); } inline void QUrl::addQueryItem(const QString &key, const QString &value) -{ QUrlQuery q(*this); q.addQueryItem(key, value); setQuery(q.query()); } +{ QUrlQuery q(*this); q.addQueryItem(key, value); setQuery(q); } inline QList<QPair<QString, QString> > QUrl::queryItems() const { return QUrlQuery(*this).queryItems(); } inline bool QUrl::hasQueryItem(const QString &key) const @@ -128,7 +128,7 @@ inline QString QUrl::queryItemValue(const QString &key) const inline QStringList QUrl::allQueryItemValues(const QString &key) const { return QUrlQuery(*this).allQueryItemValues(key); } inline void QUrl::removeQueryItem(const QString &key) -{ QUrlQuery q(*this); q.removeQueryItem(key); setQuery(q.query()); } +{ QUrlQuery q(*this); q.removeQueryItem(key); setQuery(q); } inline void QUrl::removeAllQueryItems(const QString &key) { QUrlQuery q(*this); q.removeAllQueryItems(key); } #endif |