- 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
ConstructorsConstructorDescriptionCreates a new TypeFlags.TypeFlags(int value) Creates a new TypeFlags with givenvalue.TypeFlags(QMetaType.TypeFlag ... args) Creates a new TypeFlags where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QMetaType.TypeFlagsclone()Clones the flagsfinal QMetaType.TypeFlagsCombines this flags with enum entry.final intcompareTo(QMetaType.TypeFlags other) final QMetaType.TypeFlag []flags()Returns an array of flag objects represented by this TypeFlags.final QMetaType.TypeFlagsSets the flagefinal QMetaType.TypeFlagssetFlag(QMetaType.TypeFlag 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
-
TypeFlags
public TypeFlags()Creates a new TypeFlags. -
TypeFlags
Creates a new TypeFlags where the flags inargsare 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:
combinedin classQFlags<QMetaType.TypeFlag>- Parameters:
e- enum entry- Returns:
- new TypeFlags
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QMetaType.TypeFlag>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin 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:
flagsin classQFlags<QMetaType.TypeFlag>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QMetaType.TypeFlag>
-
compareTo
- Specified by:
compareToin interfaceComparable<QMetaType.TypeFlags>
-
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
-