23 Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation)
24 Q_PROPERTY(StandardButtons standardButtons READ standardButtons WRITE setStandardButtons)
25 Q_PROPERTY(
bool centerButtons READ centerButtons WRITE setCenterButtons)
46 NoButton = 0x00000000,
52 YesToAll = 0x00008000,
64 RestoreDefaults = 0x08000000,
68 LastButton = RestoreDefaults
72 Q_DECLARE_FLAGS(StandardButtons, StandardButton)
73 Q_FLAG(StandardButtons)
84 QDialogButtonBox(QWidget *parent =
nullptr);
85 QDialogButtonBox(Qt::Orientation orientation, QWidget *parent =
nullptr);
86 explicit QDialogButtonBox(StandardButtons buttons, QWidget *parent =
nullptr);
87 QDialogButtonBox(StandardButtons buttons, Qt::Orientation orientation,
88 QWidget *parent =
nullptr);
91 void setOrientation(Qt::Orientation orientation);
92 Qt::Orientation orientation()
const;
94 void addButton(QAbstractButton *button, ButtonRole role);
95 QPushButton *addButton(
const QString &text, ButtonRole role);
96 QPushButton *addButton(StandardButton button);
97 void removeButton(QAbstractButton *button);
100 QList<QAbstractButton *> buttons()
const;
101 ButtonRole buttonRole(QAbstractButton *button)
const;
103 void setStandardButtons(StandardButtons buttons);
104 StandardButtons standardButtons()
const;
105 StandardButton standardButton(QAbstractButton *button)
const;
106 QPushButton *button(StandardButton which)
const;
108 void setCenterButtons(
bool center);
109 bool centerButtons()
const;
112 void clicked(QAbstractButton *button);
114 void helpRequested();
118 void changeEvent(QEvent *event) override;
119 bool event(QEvent *event) override;
122 Q_DISABLE_COPY(QDialogButtonBox)
123 Q_DECLARE_PRIVATE(QDialogButtonBox)
void setPageLayout(const QPageLayout &layout)
void setPagePreviewLayout(int columns, int rows)
QPagePreview(QWidget *parent)
void paintEvent(QPaintEvent *) override
This event handler can be reimplemented in a subclass to receive paint events passed in event.
QPageSetupWidget * widget
~QUnixPageSetupDialogPrivate()
QMarginsF qt_convertMargins(const QMarginsF &margins, QPageLayout::Unit fromUnits, QPageLayout::Unit toUnits)