fix the api to the standard one, items->content
This commit is contained in:
parent
88f5a3ea1e
commit
980feaaec0
@ -38,7 +38,7 @@ QMenuProxy::~QMenuProxy()
|
||||
delete m_menu;
|
||||
}
|
||||
|
||||
QDeclarativeListProperty<QMenuItem> QMenuProxy::items()
|
||||
QDeclarativeListProperty<QMenuItem> QMenuProxy::content()
|
||||
{
|
||||
return QDeclarativeListProperty<QMenuItem>(this, m_items);
|
||||
}
|
||||
|
@ -32,8 +32,8 @@ class QMenuProxy : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
Q_PROPERTY(QDeclarativeListProperty<QMenuItem> items READ items CONSTANT)
|
||||
Q_CLASSINFO("DefaultProperty", "items")
|
||||
Q_PROPERTY(QDeclarativeListProperty<QMenuItem> content READ content CONSTANT)
|
||||
Q_CLASSINFO("DefaultProperty", "content")
|
||||
Q_PROPERTY(QDeclarativeItem *visualParent READ visualParent WRITE setVisualParent NOTIFY visualParentChanged())
|
||||
Q_PROPERTY(DialogStatus::Status status READ status NOTIFY statusChanged)
|
||||
|
||||
@ -41,7 +41,7 @@ public:
|
||||
QMenuProxy(QObject *parent = 0);
|
||||
~QMenuProxy();
|
||||
|
||||
QDeclarativeListProperty<QMenuItem> items();
|
||||
QDeclarativeListProperty<QMenuItem> content();
|
||||
int actionCount() const;
|
||||
QMenuItem *action(int) const;
|
||||
DialogStatus::Status status() const;
|
||||
|
Loading…
Reference in New Issue
Block a user