mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-14 01:54:07 +02:00
Remove obsolete QT_VERSION_CHECKs
This commit is contained in:
committed by
Dominik Schmidt
parent
2b95da1a32
commit
a6cb6a92e6
@@ -52,9 +52,7 @@ QxtWeb uses QxtWebContent as an abstraction for streaming data.
|
||||
#include <QCoreApplication>
|
||||
#include <QThread>
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
|
||||
#include <QUrlQuery>
|
||||
#endif
|
||||
|
||||
#ifndef QXT_DOXYGEN_RUN
|
||||
class QxtWebContentPrivate : public QxtPrivate<QxtWebContent>
|
||||
@@ -273,11 +271,7 @@ typedef QPair<QString, QString> QxtQueryItem;
|
||||
QHash<QString, QString> QxtWebContent::parseUrlEncodedQuery(const QString& data)
|
||||
{
|
||||
QHash<QString, QString> rv;
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
|
||||
QUrl post("/?" + data);
|
||||
#else
|
||||
QUrlQuery post("/?" + data);
|
||||
#endif
|
||||
foreach(const QxtQueryItem& item, post.queryItems())
|
||||
{
|
||||
rv.insertMulti(item.first, item.second);
|
||||
|
Reference in New Issue
Block a user