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