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