- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Qt.ItemFlags>
- Enclosing class:
Qt
public static final class Qt.ItemFlags
extends QFlags<Qt.ItemFlag>
implements Comparable<Qt.ItemFlags>
QFlags type for enum Qt.ItemFlag- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionItemFlags(int value) Creates a new ItemFlags with givenvalue.ItemFlags(Qt.ItemFlag ... args) Creates a new ItemFlags where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionfinal Qt.ItemFlagsclone()Clones the flagsfinal Qt.ItemFlagsCombines this flags with enum entry.final intcompareTo(Qt.ItemFlags other) final Qt.ItemFlag []flags()Returns an array of flag objects represented by this ItemFlags.final Qt.ItemFlagsSets the flagefinal Qt.ItemFlagssetFlag(Qt.ItemFlag e, boolean on) Sets or clears the flagflag
-
Constructor Details
-
ItemFlags
Creates a new ItemFlags where the flags inargsare set.- Parameters:
args- enum entries
-
ItemFlags
public ItemFlags(int value) Creates a new ItemFlags with givenvalue.- Parameters:
value-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combinedin classQFlags<Qt.ItemFlag>- Parameters:
e- enum entry- Returns:
- new ItemFlags
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<Qt.ItemFlag>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin classQFlags<Qt.ItemFlag>- Parameters:
e- enum entryon- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this ItemFlags.- Overrides:
flagsin classQFlags<Qt.ItemFlag>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<Qt.ItemFlag>
-
compareTo
- Specified by:
compareToin interfaceComparable<Qt.ItemFlags>
-