Definition at line 57 of file qdialogbuttonbox.h.
#include <qdialogbuttonbox.h>

Public Types |
|
| enum | ButtonRole
{ InvalidRole = -1, AcceptRole, RejectRole, DestructiveRole, ActionRole, HelpRole, YesRole, NoRole, ResetRole, ApplyRole, NRoles } |
| enum | StandardButton
{ NoButton = 0x00000000, Ok = 0x00000400, Save = 0x00000800, SaveAll = 0x00001000, Open = 0x00002000, Yes = 0x00004000, YesToAll = 0x00008000, No = 0x00010000, NoToAll = 0x00020000, Abort = 0x00040000, Retry = 0x00080000, Ignore = 0x00100000, Close = 0x00200000, Cancel = 0x00400000, Discard = 0x00800000, Help = 0x01000000, Apply = 0x02000000, Reset = 0x04000000, RestoreDefaults = 0x08000000, FirstButton = Ok, LastButton = RestoreDefaults } |
| enum | ButtonLayout { WinLayout, MacLayout, KdeLayout, GnomeLayout } |
Signals |
|
| void | clicked (QAbstractButton *button) |
| void | accepted () |
| void | helpRequested () |
| void | rejected () |
Public Member Functions |
|
| QDialogButtonBox (QWidget *parent=0) | |
| QDialogButtonBox (Qt::Orientation orientation, QWidget *parent=0) | |
| QDialogButtonBox (StandardButtons buttons, Qt::Orientation orientation=Qt::Horizontal, QWidget *parent=0) | |
| ~QDialogButtonBox () | |
| void | setOrientation (Qt::Orientation orientation) |
| Qt::Orientation | orientation () const |
| void | addButton (QAbstractButton *button, ButtonRole role) |
| QPushButton * | addButton (const QString &text, ButtonRole role) |
| QPushButton * | addButton (StandardButton button) |
| void | removeButton (QAbstractButton *button) |
| void | clear () |
| QList< QAbstractButton * > | buttons () const |
| ButtonRole | buttonRole (QAbstractButton *button) const |
| void | setStandardButtons (StandardButtons buttons) |
| StandardButtons | standardButtons () const |
| StandardButton | standardButton (QAbstractButton *button) const |
| QPushButton * | button (StandardButton which) const |
| void | setCenterButtons (bool center) |
| bool | centerButtons () const |
Protected Member Functions |
|
| void | changeEvent (QEvent *event) |
| bool | event (QEvent *event) |
Properties |
|
| Qt::Orientation | orientation |
| StandardButtons | standardButtons |
| bool | centerButtons |
| enum ButtonRole |
| InvalidRole | |
| AcceptRole | |
| RejectRole | |
| DestructiveRole | |
| ActionRole | |
| HelpRole | |
| YesRole | |
| NoRole | |
| ResetRole | |
| ApplyRole | |
| NRoles |
Definition at line 66 of file qdialogbuttonbox.h.
{
// keep this in sync with QMessageBox::ButtonRole
InvalidRole = -1,
AcceptRole,
RejectRole,
DestructiveRole,
ActionRole,
HelpRole,
YesRole,
NoRole,
ResetRole,
ApplyRole,
NRoles
};
| enum StandardButton |
| NoButton | |
| Ok | |
| Save | |
| SaveAll | |
| Open | |
| Yes | |
| YesToAll | |
| No | |
| NoToAll | |
| Abort | |
| Retry | |
| Ignore | |
| Close | |
| Cancel | |
| Discard | |
| Help | |
| Apply | |
| Reset | |
| RestoreDefaults | |
| FirstButton | |
| LastButton |
Definition at line 82 of file qdialogbuttonbox.h.
{
// keep this in sync with QMessageBox::StandardButton
NoButton = 0x00000000,
Ok = 0x00000400,
Save = 0x00000800,
SaveAll = 0x00001000,
Open = 0x00002000,
Yes = 0x00004000,
YesToAll = 0x00008000,
No = 0x00010000,
NoToAll = 0x00020000,
Abort = 0x00040000,
Retry = 0x00080000,
Ignore = 0x00100000,
Close = 0x00200000,
Cancel = 0x00400000,
Discard = 0x00800000,
Help = 0x01000000,
Apply = 0x02000000,
Reset = 0x04000000,
RestoreDefaults = 0x08000000,
#ifndef Q_MOC_RUN
FirstButton = Ok,
LastButton = RestoreDefaults
#endif
};
| enum ButtonLayout |
Definition at line 112 of file qdialogbuttonbox.h.
{
WinLayout,
MacLayout,
KdeLayout,
GnomeLayout
};
| QDialogButtonBox | ( | QWidget * | parent = 0 |
) |
| QDialogButtonBox | ( | Qt::Orientation | orientation, |
| QWidget * | parent = 0 |
||
| ) |
| QDialogButtonBox | ( | StandardButtons | buttons, |
| Qt::Orientation | orientation =
Qt::Horizontal, |
||
| QWidget * | parent = 0 |
||
| ) |
| ~QDialogButtonBox | ( | ) |
| void setOrientation | ( | Qt::Orientation | orientation | ) |
| Qt::Orientation orientation | ( | ) | const |
| void addButton | ( | QAbstractButton * | button, |
| ButtonRole | role | ||
| ) |
| QPushButton* addButton | ( | const QString & | text, |
| ButtonRole | role | ||
| ) |
| QPushButton* addButton | ( | StandardButton | button | ) |
| void removeButton | ( | QAbstractButton * | button | ) |
| void clear | ( | ) |
| QList<QAbstractButton *> buttons | ( | ) | const |
| ButtonRole buttonRole | ( | QAbstractButton * | button | ) | const |
| void setStandardButtons | ( | StandardButtons | buttons | ) |
| StandardButtons standardButtons | ( | ) | const |
| StandardButton standardButton | ( | QAbstractButton * | button | ) | const |
| QPushButton* button | ( | StandardButton | which | ) | const |
| void setCenterButtons | ( | bool | center | ) |
| bool centerButtons | ( | ) | const |
| void clicked | ( | QAbstractButton * | button | ) | [signal] |
| void accepted | ( | ) | [signal] |
| void helpRequested | ( | ) | [signal] |
| void rejected | ( | ) | [signal] |
Qt::Orientation
orientation [read, write] |
Definition at line 61 of file qdialogbuttonbox.h.
StandardButtons standardButtons [read,
write] |
Definition at line 62 of file qdialogbuttonbox.h.
bool centerButtons [read,
write] |
Definition at line 63 of file qdialogbuttonbox.h.