- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QMessageBox.StandardButtons>
- Enclosing class:
QMessageBox
public static final class QMessageBox.StandardButtons
extends QFlags<QMessageBox.StandardButton>
implements Comparable<QMessageBox.StandardButtons>
QFlags
type for enum QMessageBox.StandardButton
- See Also:
-
Constructor Summary
ConstructorDescriptionStandardButtons
(int value) Creates a new StandardButtons with givenvalue
.StandardButtons
(QMessageBox.StandardButton ... args) Creates a new StandardButtons where the flags inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones the flagsCombines this flags with enum entry.final int
final QMessageBox.StandardButton []
flags()
Returns an array of flag objects represented by this StandardButtons.Sets the flage
setFlag
(QMessageBox.StandardButton e, boolean on) Sets or clears the flagflag
-
Constructor Details
-
StandardButtons
Creates a new StandardButtons where the flags inargs
are set.- Parameters:
args
- enum entries
-
StandardButtons
public StandardButtons(int value) Creates a new StandardButtons with givenvalue
.- Parameters:
value
-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QMessageBox.StandardButton>
- Parameters:
e
- enum entry- Returns:
- new StandardButtons
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QMessageBox.StandardButton>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QMessageBox.StandardButton>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this StandardButtons.- Overrides:
flags
in classQFlags<QMessageBox.StandardButton>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QMessageBox.StandardButton>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QMessageBox.StandardButtons>
-