- All Implemented Interfaces:
Serializable,Cloneable,Comparable<QStyle.SubControls>
- Enclosing class:
QStyle
public static final class QStyle.SubControls
extends QFlags<QStyle.SubControl>
implements Comparable<QStyle.SubControls>
QFlags type for enum QStyle.SubControl- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SubControls.SubControls(int value) Creates a new SubControls with givenvalue.SubControls(QStyle.SubControl ... args) Creates a new SubControls where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QStyle.SubControlsclone()Clones the flagsfinal QStyle.SubControlsCombines this flags with enum entry.final intcompareTo(QStyle.SubControls other) final QStyle.SubControl []flags()Returns an array of flag objects represented by this SubControls.final QStyle.SubControlsSets the flagefinal QStyle.SubControlssetFlag(QStyle.SubControl 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
-
SubControls
public SubControls()Creates a new SubControls. -
SubControls
Creates a new SubControls where the flags inargsare set.- Parameters:
args- enum entries
-
SubControls
public SubControls(int value) Creates a new SubControls with givenvalue.- Parameters:
value-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combinedin classQFlags<QStyle.SubControl>- Parameters:
e- enum entry- Returns:
- new SubControls
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QStyle.SubControl>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin classQFlags<QStyle.SubControl>- Parameters:
e- enum entryon- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this SubControls.- Overrides:
flagsin classQFlags<QStyle.SubControl>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QStyle.SubControl>
-
compareTo
- Specified by:
compareToin interfaceComparable<QStyle.SubControls>
-
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
-