Port away from deprecated QQmlListProperty<T> constructor
GIT_SILENT
This commit is contained in:
parent
396c643154
commit
94d7efaec2
@ -59,7 +59,11 @@ QMenuProxy::~QMenuProxy()
|
|||||||
|
|
||||||
QQmlListProperty<QMenuItem> QMenuProxy::content()
|
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);
|
return QQmlListProperty<QMenuItem>(this, m_items);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int QMenuProxy::actionCount() const
|
int QMenuProxy::actionCount() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user