| @@ -17,14 +17,14 @@ | |||||
| #include "hylia.h" | #include "hylia.h" | ||||
| #if defined(__clang__) | |||||
| #if defined(__clang_major__) && __clang_major__ >= 4 | |||||
| # pragma clang diagnostic push | # pragma clang diagnostic push | ||||
| # pragma clang diagnostic ignored "-Wunused-local-typedef" | # pragma clang diagnostic ignored "-Wunused-local-typedef" | ||||
| #endif | #endif | ||||
| #include "AudioEngine.hpp" | #include "AudioEngine.hpp" | ||||
| #if defined(__clang__) | |||||
| #if defined(__clang_major__) && __clang_major__ >= 4 | |||||
| # pragma clang diagnostic pop | # pragma clang diagnostic pop | ||||
| #endif | #endif | ||||
| @@ -20,10 +20,9 @@ | |||||
| #include <QtCore/qmath.h> | #include <QtCore/qmath.h> | ||||
| #include <QtCore/QStringBuilder> | #include <QtCore/QStringBuilder> | ||||
| #include <QtGui/QPainter> | |||||
| #include <QtGui/QPixmapCache> | |||||
| #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) | #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) | ||||
| # include <QtGui/QPainter> | |||||
| # include <QtGui/QPixmapCache> | |||||
| # include <QtWidgets/qdrawutil.h> | # include <QtWidgets/qdrawutil.h> | ||||
| # include <QtWidgets/QApplication> | # include <QtWidgets/QApplication> | ||||
| # include <QtWidgets/QComboBox> | # include <QtWidgets/QComboBox> | ||||
| @@ -39,6 +38,12 @@ | |||||
| # define QStyleOptionFrameV3 QStyleOptionFrame | # define QStyleOptionFrameV3 QStyleOptionFrame | ||||
| # define QStyleOptionProgressBarV2 QStyleOptionProgressBar | # define QStyleOptionProgressBarV2 QStyleOptionProgressBar | ||||
| #else | #else | ||||
| # ifdef __clang__ | |||||
| # pragma clang diagnostic push | |||||
| # pragma clang diagnostic ignored "-Wdeprecated-register" | |||||
| # endif | |||||
| # include <QtGui/QPainter> | |||||
| # include <QtGui/QPixmapCache> | |||||
| # include <QtGui/QApplication> | # include <QtGui/QApplication> | ||||
| # include <QtGui/QComboBox> | # include <QtGui/QComboBox> | ||||
| # include <QtGui/QGroupBox> | # include <QtGui/QGroupBox> | ||||
| @@ -50,6 +55,9 @@ | |||||
| # include <QtGui/QSpinBox> | # include <QtGui/QSpinBox> | ||||
| # include <QtGui/QSplitter> | # include <QtGui/QSplitter> | ||||
| # include <QtGui/QWizard> | # include <QtGui/QWizard> | ||||
| # ifdef __clang__ | |||||
| # pragma clang diagnostic pop | |||||
| # endif | |||||
| #endif | #endif | ||||
| #include <cstdio> | #include <cstdio> | ||||
| @@ -36,19 +36,26 @@ | |||||
| #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) | #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) | ||||
| # include <QtWidgets/QCommonStyle> | # include <QtWidgets/QCommonStyle> | ||||
| #else | #else | ||||
| # ifdef __clang__ | |||||
| # pragma clang diagnostic push | |||||
| # pragma clang diagnostic ignored "-Wdeprecated-register" | |||||
| # endif | |||||
| # include <QtGui/QCommonStyle> | # include <QtGui/QCommonStyle> | ||||
| # ifdef __clang__ | |||||
| # pragma clang diagnostic pop | |||||
| # endif | |||||
| #endif | #endif | ||||
| class CarlaStylePrivate; | class CarlaStylePrivate; | ||||
| class CarlaStyle : public QCommonStyle | class CarlaStyle : public QCommonStyle | ||||
| { | { | ||||
| #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) && defined(__clang__) | |||||
| #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) && defined(__clang_major__) && __clang_major__ >= 4 | |||||
| # pragma clang diagnostic push | # pragma clang diagnostic push | ||||
| # pragma clang diagnostic ignored "-Winconsistent-missing-override" | # pragma clang diagnostic ignored "-Winconsistent-missing-override" | ||||
| #endif | #endif | ||||
| Q_OBJECT | Q_OBJECT | ||||
| #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) && defined(__clang__) | |||||
| #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) && defined(__clang_major__) && __clang_major__ >= 4 | |||||
| # pragma clang diagnostic pop | # pragma clang diagnostic pop | ||||
| #endif | #endif | ||||
| @@ -33,12 +33,12 @@ | |||||
| class CarlaStyleAnimation : public QAbstractAnimation | class CarlaStyleAnimation : public QAbstractAnimation | ||||
| { | { | ||||
| #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) && defined(__clang__) | |||||
| #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) && defined(__clang_major__) && __clang_major__ >= 4 | |||||
| # pragma clang diagnostic push | # pragma clang diagnostic push | ||||
| # pragma clang diagnostic ignored "-Winconsistent-missing-override" | # pragma clang diagnostic ignored "-Winconsistent-missing-override" | ||||
| #endif | #endif | ||||
| Q_OBJECT | Q_OBJECT | ||||
| #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) && defined(__clang__) | |||||
| #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) && defined(__clang_major__) && __clang_major__ >= 4 | |||||
| # pragma clang diagnostic pop | # pragma clang diagnostic pop | ||||
| #endif | #endif | ||||
| @@ -129,12 +129,12 @@ private: | |||||
| class CarlaProgressStyleAnimation : public CarlaStyleAnimation | class CarlaProgressStyleAnimation : public CarlaStyleAnimation | ||||
| { | { | ||||
| #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) && defined(__clang__) | |||||
| #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) && defined(__clang_major__) && __clang_major__ >= 4 | |||||
| # pragma clang diagnostic push | # pragma clang diagnostic push | ||||
| # pragma clang diagnostic ignored "-Winconsistent-missing-override" | # pragma clang diagnostic ignored "-Winconsistent-missing-override" | ||||
| #endif | #endif | ||||
| Q_OBJECT | Q_OBJECT | ||||
| #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) && defined(__clang__) | |||||
| #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) && defined(__clang_major__) && __clang_major__ >= 4 | |||||
| # pragma clang diagnostic pop | # pragma clang diagnostic pop | ||||
| #endif | #endif | ||||
| @@ -27,12 +27,12 @@ class QStyleAnimation; | |||||
| class CarlaStylePrivate : public QObject | class CarlaStylePrivate : public QObject | ||||
| { | { | ||||
| #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) && defined(__clang__) | |||||
| #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) && defined(__clang_major__) && __clang_major__ >= 4 | |||||
| # pragma clang diagnostic push | # pragma clang diagnostic push | ||||
| # pragma clang diagnostic ignored "-Winconsistent-missing-override" | # pragma clang diagnostic ignored "-Winconsistent-missing-override" | ||||
| #endif | #endif | ||||
| Q_OBJECT | Q_OBJECT | ||||
| #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) && defined(__clang__) | |||||
| #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) && defined(__clang_major__) && __clang_major__ >= 4 | |||||
| # pragma clang diagnostic pop | # pragma clang diagnostic pop | ||||
| #endif | #endif | ||||