Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.4.0
-
None
Description
Method code:
// qurlquery.h inline void QUrl::removeAllQueryItems(const QString &key) { QUrlQuery q(*this); q.removeAllQueryItems(key); }
This function does nothing with QUrl instance unlike neighbor function:
inline void QUrl::removeQueryItem(const QString &key) { QUrlQuery q(*this); q.removeQueryItem(key); setQuery(q); }
It seems like "setQuery(q);" statement should be added to the end of removeAllQueryItems method.
Example:
QByteArray const GROUP_NAME = "group"; QUrl url; url.addQueryItem(GROUP_NAME, "value0"); url.addQueryItem(GROUP_NAME, "value1"); url.removeAllQueryItems(GROUP_NAME); // No one of query items removed here. qDebug() << url.queryItems().count();
Attachments
For Gerrit Dashboard: QTBUG-49963 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
143934,2 | Make QUrl::removeAllQueryItems actually remove the query items | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |