diff --git a/src/declarativeimports/plasmacomponents/qmenu.cpp b/src/declarativeimports/plasmacomponents/qmenu.cpp index 578133b59..1069f134f 100644 --- a/src/declarativeimports/plasmacomponents/qmenu.cpp +++ b/src/declarativeimports/plasmacomponents/qmenu.cpp @@ -59,7 +59,11 @@ QMenuProxy::~QMenuProxy() QQmlListProperty QMenuProxy::content() { +#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) + return QQmlListProperty(this, &m_items); +#else return QQmlListProperty(this, m_items); +#endif } int QMenuProxy::actionCount() const