Enum qt_widgets::dialog_button_box::ButtonRole
source · #[repr(C)]
pub enum ButtonRole {
InvalidRole,
AcceptRole,
RejectRole,
DestructiveRole,
ActionRole,
HelpRole,
YesRole,
NoRole,
ResetRole,
ApplyRole,
NRoles,
}Expand description
C++ type: QDialogButtonBox::ButtonRole
This enum describes the roles that can be used to describe buttons in the button box. Combinations of these roles are as flags used to describe different aspects of their behavior.
See also StandardButton.
Variants§
InvalidRole
The button is invalid. (C++ enum variant: InvalidRole = -1)
AcceptRole
Clicking the button causes the dialog to be accepted (e.g. OK). (C++ enum variant: AcceptRole = 0)
RejectRole
Clicking the button causes the dialog to be rejected (e.g. Cancel). (C++ enum variant: RejectRole = 1)
DestructiveRole
Clicking the button causes a destructive change (e.g. for Discarding Changes) and closes the dialog. (C++ enum variant: DestructiveRole = 2)
ActionRole
Clicking the button causes changes to the elements within the dialog. (C++ enum variant: ActionRole = 3)
HelpRole
The button can be clicked to request help. (C++ enum variant: HelpRole = 4)
YesRole
The button is a “Yes”-like button. (C++ enum variant: YesRole = 5)
NoRole
The button is a “No”-like button. (C++ enum variant: NoRole = 6)
ResetRole
The button resets the dialog’s fields to default values. (C++ enum variant: ResetRole = 7)
ApplyRole
The button applies current changes. (C++ enum variant: ApplyRole = 8)
NRoles
C++ enum variant: NRoles = 9
Trait Implementations§
source§impl Clone for ButtonRole
impl Clone for ButtonRole
source§fn clone(&self) -> ButtonRole
fn clone(&self) -> ButtonRole
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more