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(QQmlComponent *delegate READ delegate WRITE setDelegate NOTIFY delegateChanged FINAL)
40 Q_PROPERTY(QPlatformDialogHelper::ButtonLayout buttonLayout READ buttonLayout WRITE setButtonLayout RESET resetButtonLayout NOTIFY buttonLayoutChanged FINAL REVISION(2, 5))
41 QML_NAMED_ELEMENT(DialogButtonBox)
42 QML_ATTACHED(QQuickDialogButtonBoxAttached)
43 QML_EXTENDED_NAMESPACE(QPlatformDialogHelper)
44 QML_ADDED_IN_VERSION(2, 1)
47 explicit QQuickDialogButtonBox(QQuickItem *parent =
nullptr);
48 ~QQuickDialogButtonBox();
56 Position position()
const;
57 void setPosition(Position position);
59 Qt::Alignment alignment()
const;
60 void setAlignment(Qt::Alignment alignment);
61 void resetAlignment();
63 QPlatformDialogHelper::StandardButtons standardButtons()
const;
64 void setStandardButtons(QPlatformDialogHelper::StandardButtons buttons);
65 Q_INVOKABLE QQuickAbstractButton *standardButton(QPlatformDialogHelper::StandardButton button)
const;
67 QQmlComponent *delegate()
const;
68 void setDelegate(QQmlComponent *delegate);
70 static QQuickDialogButtonBoxAttached *qmlAttachedProperties(QObject *object);
72 QPlatformDialogHelper::ButtonLayout buttonLayout()
const;
73 void setButtonLayout(QPlatformDialogHelper::ButtonLayout layout);
74 void resetButtonLayout();
80 void clicked(QQuickAbstractButton *button);
81 void positionChanged();
82 void alignmentChanged();
83 void standardButtonsChanged();
84 void delegateChanged();
86 Q_REVISION(2, 3)
void applied();
87 Q_REVISION(2, 3)
void reset();
88 Q_REVISION(2, 3)
void discarded();
90 Q_REVISION(2, 5)
void buttonLayoutChanged();
93 void updatePolish() override;
94 void componentComplete() override;
95 void geometryChange(
const QRectF &newGeometry,
const QRectF &oldGeometry) override;
96 void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem) override;
97 bool isContent(QQuickItem *item)
const override;
98 void itemAdded(
int index, QQuickItem *item) override;
99 void itemRemoved(
int index, QQuickItem *item) override;
101#if QT_CONFIG(accessibility)
102 QAccessible::Role accessibleRole()
const override;
104 bool event(QEvent *e) override;
107 Q_DISABLE_COPY(QQuickDialogButtonBox)
108 Q_DECLARE_PRIVATE(QQuickDialogButtonBox)
114 Q_PROPERTY(QQuickDialogButtonBox *buttonBox READ buttonBox NOTIFY buttonBoxChanged FINAL)
115 Q_PROPERTY(QPlatformDialogHelper::ButtonRole buttonRole READ buttonRole WRITE setButtonRole NOTIFY buttonRoleChanged FINAL)
118 explicit QQuickDialogButtonBoxAttached(QObject *parent =
nullptr);
120 QQuickDialogButtonBox *buttonBox()
const;
122 QPlatformDialogHelper::ButtonRole buttonRole()
const;
123 void setButtonRole(QPlatformDialogHelper::ButtonRole role);
126 void buttonBoxChanged();
127 void buttonRoleChanged();
130 Q_DISABLE_COPY(QQuickDialogButtonBoxAttached)
131 Q_DECLARE_PRIVATE(QQuickDialogButtonBoxAttached)