From 94d7efaec23c66e9ee8517aa83d66ce77dec9cbc Mon Sep 17 00:00:00 2001 From: "Friedrich W. H. Kossebau" Date: Fri, 26 Jun 2020 15:53:04 +0200 Subject: [PATCH] Port away from deprecated QQmlListProperty constructor GIT_SILENT --- src/declarativeimports/plasmacomponents/qmenu.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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