5#ifndef QQSTYLEKITDELEGATECONTAINER_P_H
6#define QQSTYLEKITDELEGATECONTAINER_P_H
19#include <QtQuick/qquickitem.h>
20#include <QtQml/qqmlparserstatus.h>
24class QQStyleKitDelegateProperties;
29 Q_PROPERTY(QQStyleKitDelegateProperties *delegateStyle READ delegateStyle WRITE setDelegateStyle NOTIFY delegateStyleChanged FINAL)
53 void geometryChange(
const QRectF &newGeometry,
const QRectF &oldGeometry)
override;
56 void updateImplicitSize();
57 void maybeCreateDelegate();
58 void maybeCreateShadow();
61 QPointer<QQStyleKitDelegateProperties> m_delegateProperties;
62 QPointer<QObject> m_control;
64 QPointer<QQuickItem> m_delegateInstance;
65 QPointer<QQuickItem> m_shadowInstance;
67 QPointer<QQmlComponent> m_delegateComponent;
68 QPointer<QQmlComponent> m_shadowComponent;
70 bool m_inGeometryChange =
false;
72 static QQmlComponent *s_defaultDelegateComponent;
73 static QQmlComponent *s_defaultShadowComponent;
QQStyleKitDelegateProperties * delegateStyle() const
~QQStyleKitDelegateContainer() override
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
QObject * quickControl() const
void setQuickControl(QObject *control)
void quickControlChanged()
void delegateInstanceChanged()
void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override
void setDelegateStyle(QQStyleKitDelegateProperties *delegateProperties)
QQuickItem * delegateInstance() const
Combined button and popup list for selecting options.