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