1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 08:34:34 +02:00

Remove obsolete QT_VERSION_CHECKs

This commit is contained in:
Andreas Sturmlechner
2018-07-07 21:40:23 +02:00
committed by Dominik Schmidt
parent 2b95da1a32
commit a6cb6a92e6
62 changed files with 34 additions and 496 deletions

View File

@@ -38,11 +38,7 @@
#include <QtDebug>
#include <qxtglobal.h>
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
#define qxtcreate create
#else
#define qxtcreate construct
#endif
template <typename T>
class /*QXT_CORE_EXPORT*/ QxtMetaType

View File

@@ -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);