- 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
ConstructorsConstructorDescriptionCreates a new ButtonFeatures.ButtonFeatures(int value) Creates a new ButtonFeatures with givenvalue.Creates a new ButtonFeatures where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones the flagsCombines this flags with enum entry.final intfinal QStyleOptionButton.ButtonFeature []flags()Returns an array of flag objects represented by this ButtonFeatures.Sets the flagesetFlag(QStyleOptionButton.ButtonFeature e, boolean on) Sets or clears the flagflagfinal voidsetValue(int value) Sets the value of this QFlags.final intvalue()Returns the value of this QFlags.
-
Constructor Details
-
ButtonFeatures
public ButtonFeatures()Creates a new ButtonFeatures. -
ButtonFeatures
Creates a new ButtonFeatures where the flags inargsare 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:
combinedin classQFlags<QStyleOptionButton.ButtonFeature>- Parameters:
e- enum entry- Returns:
- new ButtonFeatures
-
setFlag
Sets the flage- Overrides:
setFlagin 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:
setFlagin 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:
flagsin classQFlags<QStyleOptionButton.ButtonFeature>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QStyleOptionButton.ButtonFeature>
-
compareTo
- Specified by:
compareToin interfaceComparable<QStyleOptionButton.ButtonFeatures>
-
value
public final int value()Returns the value of this QFlags. -
setValue
public final void setValue(int value) Sets the value of this QFlags.- Parameters:
value- new value
-