From ba5918be5c89898d7d39d1baaa46841f04148c49 Mon Sep 17 00:00:00 2001 From: Be Date: Fri, 17 Sep 2021 14:20:14 -0500 Subject: [PATCH] QmlEffectsManagerProxy: fully define QmlVisibleEffectsModel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is required in Qt6: In file included from /usr/include/qt6/QtCore/qobject.h:54, from /usr/include/qt6/QtWidgets/qwidget.h:45, from /usr/include/qt6/QtWidgets/qdialog.h:44, from /usr/include/qt6/QtWidgets/QDialog:1, from mixxx-lib_autogen/LOXWS6PXLU/../../../src/dialog/dlgkeywheel.h:4, from mixxx-lib_autogen/LOXWS6PXLU/moc_dlgkeywheel.cpp:10, from mixxx-lib_autogen/mocs_compilation.cpp:2: /usr/include/qt6/QtCore/qmetatype.h: In instantiation of ‘struct QtPrivate::IsPointerToTypeDerivedFromQObject’: /usr/include/qt6/QtCore/qmetatype.h:1096:63: required from ‘struct QtPrivate::QMetaTypeTypeFlags’ /usr/include/qt6/QtCore/qmetatype.h:2257:44: required from ‘constexpr const QtPrivate::QMetaTypeInterface QtPrivate::QMetaTypeInterfaceWrapper::metaType’ /usr/include/qt6/QtCore/qmetatype.h:2380:16: required from ‘constexpr const QtPrivate::QMetaTypeInterface* QtPrivate::qTryMetaTypeInterfaceForType() [with Unique = qt_meta_stringdata_mixxx__skin__qml__QmlEffectsManagerProxy_t; TypeCompletePair = QtPrivate::TypeAndForceComplete >]’ /usr/include/qt6/QtCore/qmetatype.h:2424:55: required from ‘constexpr const QtPrivate::QMetaTypeInterface* const qt_incomplete_metaTypeArray [5] >, QtPrivate::TypeAndForceComplete >, QtPrivate::TypeAndForceComplete >, QtPrivate::TypeAndForceComplete >, QtPrivate::TypeAndForceComplete > >’ mixxx-lib_autogen/PXXERMKKWZ/moc_qmleffectsmanagerproxy.cpp:109:1: required from here /usr/include/qt6/QtCore/qmetatype.h:778:23: error: invalid application of ‘sizeof’ to incomplete type ‘mixxx::skin::qml::QmlVisibleEffectsModel’ 778 | static_assert(sizeof(T), "Type argument of Q_PROPERTY or Q_DECLARE_METATYPE(T*) must be fully defined"); | ^~~~~~~~~ --- src/skin/qml/qmleffectsmanagerproxy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/skin/qml/qmleffectsmanagerproxy.h b/src/skin/qml/qmleffectsmanagerproxy.h index 9b1af880723..79f67c3c4f9 100644 --- a/src/skin/qml/qmleffectsmanagerproxy.h +++ b/src/skin/qml/qmleffectsmanagerproxy.h @@ -2,12 +2,12 @@ #include #include "effects/effectsmanager.h" +#include "skin/qml/qmlvisibleeffectsmodel.h" namespace mixxx { namespace skin { namespace qml { -class QmlVisibleEffectsModel; class QmlEffectSlotProxy; class QmlEffectsManagerProxy : public QObject {