- 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
ConstructorDescriptionCreates a new SubControls.SubControls
(int value) Creates a new SubControls with givenvalue
.SubControls
(QStyle.SubControl ... args) Creates a new SubControls where the flags inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QStyle.SubControls
clone()
Clones the flagsfinal QStyle.SubControls
Combines this flags with enum entry.final int
compareTo
(QStyle.SubControls other) final QStyle.SubControl []
flags()
Returns an array of flag objects represented by this SubControls.final QStyle.SubControls
Sets the flage
final QStyle.SubControls
setFlag
(QStyle.SubControl e, boolean on) Sets or clears the flagflag
final void
setValue
(int value) Sets the value of this QFlags.final int
value()
Returns the value of this QFlags.
-
Constructor Details
-
SubControls
public SubControls()Creates a new SubControls. -
SubControls
Creates a new SubControls where the flags inargs
are 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:
combined
in classQFlags<QStyle.SubControl>
- Parameters:
e
- enum entry- Returns:
- new SubControls
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QStyle.SubControl>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in 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:
flags
in classQFlags<QStyle.SubControl>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QStyle.SubControl>
-
compareTo
- Specified by:
compareTo
in 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
-