Port away from deprecated QQmlListProperty<T> constructor

GIT_SILENT
This commit is contained in:
Friedrich W. H. Kossebau 2020-06-26 15:53:04 +02:00
parent 396c643154
commit 94d7efaec2

View File

@ -59,7 +59,11 @@ QMenuProxy::~QMenuProxy()
QQmlListProperty<QMenuItem> QMenuProxy::content()
{
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
return QQmlListProperty<QMenuItem>(this, &m_items);
#else
return QQmlListProperty<QMenuItem>(this, m_items);
#endif
}
int QMenuProxy::actionCount() const