aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickpane_p_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/quicktemplates2/qquickpane_p_p.h')
-rw-r--r--src/quicktemplates2/qquickpane_p_p.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickpane_p_p.h b/src/quicktemplates2/qquickpane_p_p.h
index c811c487..bd89aee2 100644
--- a/src/quicktemplates2/qquickpane_p_p.h
+++ b/src/quicktemplates2/qquickpane_p_p.h
@@ -59,10 +59,30 @@ class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickPanePrivate : public QQuickControlP
Q_DECLARE_PUBLIC(QQuickPane)
public:
+ void init();
+
+ virtual QQmlListProperty<QObject> contentData();
+ virtual QQmlListProperty<QQuickItem> contentChildren();
+ virtual QList<QQuickItem *> contentChildItems() const;
+
QQuickItem *getContentItem() override;
+ qreal getContentWidth() const override;
+ qreal getContentHeight() const override;
+
+ void itemImplicitWidthChanged(QQuickItem *item) override;
+ void itemImplicitHeightChanged(QQuickItem *item) override;
+
+ void contentChildrenChange();
+
+ void updateContentWidth();
+ void updateContentHeight();
+
+ bool hasContentWidth = false;
+ bool hasContentHeight = false;
qreal contentWidth = 0;
qreal contentHeight = 0;
+ QQuickItem *firstChild = nullptr;
};
QT_END_NAMESPACE