28 Q_DECLARE_PUBLIC(QQuickContainer)
30 static QQuickContainerPrivate *get(QQuickContainer *container)
32 return container->d_func();
38 QQuickItem *itemAt(
int index)
const;
39 void insertItem(
int index, QQuickItem *item);
40 void moveItem(
int from,
int to, QQuickItem *item);
41 void removeItem(
int index, QQuickItem *item);
43 void maybeCullItem(QQuickItem *item);
44 void maybeCullItems();
46 void _q_currentIndexChanged();
48 void itemChildAdded(QQuickItem *item, QQuickItem *child) override;
49 void itemSiblingOrderChanged(QQuickItem *item) override;
50 void itemParentChanged(QQuickItem *item, QQuickItem *parent) override;
51 void itemDestroyed(QQuickItem *item) override;
53 static void contentData_append(QQmlListProperty<QObject> *prop, QObject *obj);
54 static qsizetype contentData_count(QQmlListProperty<QObject> *prop);
55 static QObject *contentData_at(QQmlListProperty<QObject> *prop, qsizetype index);
56 static void contentData_clear(QQmlListProperty<QObject> *prop);
58 static void contentChildren_append(QQmlListProperty<QQuickItem> *prop, QQuickItem *obj);
59 static qsizetype contentChildren_count(QQmlListProperty<QQuickItem> *prop);
60 static QQuickItem *contentChildren_at(QQmlListProperty<QQuickItem> *prop, qsizetype index);
61 static void contentChildren_clear(QQmlListProperty<QQuickItem> *prop);
63 void updateContentWidth();
64 void updateContentHeight();
66 qreal getContentWidth()
const override;
67 qreal getContentHeight()
const override;
69 bool hasContentWidth =
false;
70 bool hasContentHeight =
false;
71 qreal contentWidth = 0;
72 qreal contentHeight = 0;
73 QObjectList contentData;
74 QQmlObjectModel *contentModel =
nullptr;
75 qsizetype currentIndex = -1;
76 bool updatingCurrent =
false;
77 QQuickItemPrivate::ChangeTypes changeTypes = Destroyed | Parent | SiblingOrder;