Use simpler DEFINE for detecting Qt5 so moc will work too.

This commit is contained in:
sledgehammer999 2015-12-05 21:49:46 +02:00
commit 17ac4b90be
28 changed files with 71 additions and 70 deletions

View file

@ -42,7 +42,7 @@
#include "previewselect.h"
#ifdef Q_OS_WIN
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#ifndef QBT_USES_QT5
#include <QPlastiqueStyle>
#else
#include <QProxyStyle>
@ -80,7 +80,7 @@ class PreviewListDelegate: public QItemDelegate {
QApplication::style()->drawControl(QStyle::CE_ProgressBar, &newopt, painter);
#else
// XXX: To avoid having the progress text on the right of the bar
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
#ifndef QBT_USES_QT5
QPlastiqueStyle st;
#else
QProxyStyle st("fusion");