35 Q_PROPERTY(Position position READ position WRITE setPosition NOTIFY positionChanged FINAL)
36 Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment RESET resetAlignment NOTIFY alignmentChanged FINAL)
37 Q_PROPERTY(QPlatformDialogHelper::StandardButtons standardButtons READ standardButtons WRITE setStandardButtons NOTIFY standardButtonsChanged FINAL)
38 Q_PROPERTY(QPlatformDialogHelper::StandardButton defaultStandardButton READ defaultStandardButton WRITE setDefaultStandardButton NOTIFY defaultStandardButtonChanged FINAL REVISION(6, 11))
39 Q_PROPERTY(QQuickAbstractButton *defaultButton READ defaultButton WRITE setDefaultButton NOTIFY defaultButtonChanged FINAL REVISION(6, 11))
40 Q_PROPERTY(QQmlComponent *delegate READ delegate WRITE setDelegate NOTIFY delegateChanged FINAL)
42 Q_PROPERTY(QPlatformDialogHelper::ButtonLayout buttonLayout READ buttonLayout WRITE setButtonLayout RESET resetButtonLayout NOTIFY buttonLayoutChanged FINAL REVISION(2, 5))
43 QML_NAMED_ELEMENT(DialogButtonBox)
44 QML_ATTACHED(QQuickDialogButtonBoxAttached)
45 QML_EXTENDED_NAMESPACE(QPlatformDialogHelper)
46 QML_ADDED_IN_VERSION(2, 1)
49 explicit QQuickDialogButtonBox(QQuickItem *parent =
nullptr);
50 ~QQuickDialogButtonBox();
58 Position position()
const;
59 void setPosition(Position position);
61 Qt::Alignment alignment()
const;
62 void setAlignment(Qt::Alignment alignment);
63 void resetAlignment();
65 QPlatformDialogHelper::StandardButtons standardButtons()
const;
66 void setStandardButtons(QPlatformDialogHelper::StandardButtons buttons);
67 Q_INVOKABLE QQuickAbstractButton *standardButton(QPlatformDialogHelper::StandardButton button)
const;
69 QPlatformDialogHelper::StandardButton defaultStandardButton()
const;
70 void setDefaultStandardButton(QPlatformDialogHelper::StandardButton button);
72 QQuickAbstractButton *defaultButton()
const;
73 void setDefaultButton(QQuickAbstractButton *button);
75 QQmlComponent *delegate()
const;
76 void setDelegate(QQmlComponent *delegate);
78 static QQuickDialogButtonBoxAttached *qmlAttachedProperties(QObject *object);
80 QPlatformDialogHelper::ButtonLayout buttonLayout()
const;
81 void setButtonLayout(QPlatformDialogHelper::ButtonLayout layout);
82 void resetButtonLayout();
88 void clicked(QQuickAbstractButton *button);
89 void positionChanged();
90 void alignmentChanged();
91 void standardButtonsChanged();
92 void delegateChanged();
94 Q_REVISION(2, 3)
void applied();
95 Q_REVISION(2, 3)
void reset();
96 Q_REVISION(2, 3)
void discarded();
98 Q_REVISION(2, 5)
void buttonLayoutChanged();
99 Q_REVISION(6, 11)
void defaultStandardButtonChanged();
100 Q_REVISION(6, 11)
void defaultButtonChanged();
103 void updatePolish() override;
104 void componentComplete() override;
105 void geometryChange(
const QRectF &newGeometry,
const QRectF &oldGeometry) override;
106 void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem) override;
107 bool isContent(QQuickItem *item)
const override;
108 void itemAdded(
int index, QQuickItem *item) override;
109 void itemRemoved(
int index, QQuickItem *item) override;
111#if QT_CONFIG(accessibility)
112 QAccessible::Role accessibleRole()
const override;
114 bool event(QEvent *e) override;
117 void itemChange(QQuickItem::ItemChange change,
const QQuickItem::ItemChangeData &data) override;
119 Q_DISABLE_COPY(QQuickDialogButtonBox)
120 Q_DECLARE_PRIVATE(QQuickDialogButtonBox)
126 Q_PROPERTY(QQuickDialogButtonBox *buttonBox READ buttonBox NOTIFY buttonBoxChanged FINAL)
127 Q_PROPERTY(QPlatformDialogHelper::ButtonRole buttonRole READ buttonRole WRITE setButtonRole NOTIFY buttonRoleChanged FINAL)
130 explicit QQuickDialogButtonBoxAttached(QObject *parent =
nullptr);
132 QQuickDialogButtonBox *buttonBox()
const;
134 QPlatformDialogHelper::ButtonRole buttonRole()
const;
135 void setButtonRole(QPlatformDialogHelper::ButtonRole role);
138 void buttonBoxChanged();
139 void buttonRoleChanged();
142 Q_DISABLE_COPY(QQuickDialogButtonBoxAttached)
143 Q_DECLARE_PRIVATE(QQuickDialogButtonBoxAttached)