aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickpane_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2018-03-24 07:48:40 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2018-04-04 09:03:08 +0000
commitf249c3d30de43e6f0e4f8905f8a4090a912b0a08 (patch)
treedf67d9ca7f3628dfe288621c1a990419347ce0d9 /src/quicktemplates2/qquickpane_p.h
parent5e6b1e2950aa96b53c2fe77185f8d3bf420d27e9 (diff)
Use Q_PRIVATE_PROPERTY for QQmlListProperty
Hide QQmlListProperty, which is close to unusable in C++, from the templates C++ API. Change-Id: I9720fc3297fc625076a8a7553245852b641bc65a Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickpane_p.h')
-rw-r--r--src/quicktemplates2/qquickpane_p.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/quicktemplates2/qquickpane_p.h b/src/quicktemplates2/qquickpane_p.h
index 53bf7067..55ddf200 100644
--- a/src/quicktemplates2/qquickpane_p.h
+++ b/src/quicktemplates2/qquickpane_p.h
@@ -60,8 +60,8 @@ class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickPane : public QQuickControl
Q_OBJECT
Q_PROPERTY(qreal contentWidth READ contentWidth WRITE setContentWidth RESET resetContentWidth NOTIFY contentWidthChanged FINAL)
Q_PROPERTY(qreal contentHeight READ contentHeight WRITE setContentHeight RESET resetContentHeight NOTIFY contentHeightChanged FINAL)
- Q_PROPERTY(QQmlListProperty<QObject> contentData READ contentData FINAL)
- Q_PROPERTY(QQmlListProperty<QQuickItem> contentChildren READ contentChildren NOTIFY contentChildrenChanged FINAL)
+ Q_PRIVATE_PROPERTY(QQuickPane::d_func(), QQmlListProperty<QObject> contentData READ contentData FINAL)
+ Q_PRIVATE_PROPERTY(QQuickPane::d_func(), QQmlListProperty<QQuickItem> contentChildren READ contentChildren NOTIFY contentChildrenChanged FINAL)
Q_CLASSINFO("DefaultProperty", "contentData")
public:
@@ -76,9 +76,6 @@ public:
void setContentHeight(qreal height);
void resetContentHeight();
- QQmlListProperty<QObject> contentData();
- QQmlListProperty<QQuickItem> contentChildren();
-
Q_SIGNALS:
void contentWidthChanged();
void contentHeightChanged();