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