#[repr(C)]
pub enum ButtonRole {
    InvalidRole,
    AcceptRole,
    RejectRole,
    DestructiveRole,
    ActionRole,
    HelpRole,
    YesRole,
    NoRole,
    ResetRole,
    ApplyRole,
    NRoles,
}
Expand description

C++ type: QDialogButtonBox::ButtonRole

C++ documentation:

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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.