- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ItemFlags(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 Type Method Description Qt.ItemFlags
clone()
Clones the flagsQt.ItemFlags
combined(Qt.ItemFlag e)
Combines this flags with enum entry.int
compareTo(Qt.ItemFlags other)
Qt.ItemFlag[]
flags()
Returns an array of flag objects represented by this ItemFlags.Qt.ItemFlags
setFlag(Qt.ItemFlag e)
Sets the flage
Qt.ItemFlags
setFlag(Qt.ItemFlag e, boolean on)
Sets or clears the flagflag
-
Constructor Details
-
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>
-