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