- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description CheckIndexOptions(int value)
Creates a new CheckIndexOptions with givenvalue
.CheckIndexOptions(QAbstractItemModel.CheckIndexOption... args)
Creates a new CheckIndexOptions where the flags inargs
are set. -
Method Summary
Modifier and Type Method Description QAbstractItemModel.CheckIndexOptions
clone()
Clones the flagsQAbstractItemModel.CheckIndexOptions
combined(QAbstractItemModel.CheckIndexOption e)
Combines this flags with enum entry.int
compareTo(QAbstractItemModel.CheckIndexOptions other)
QAbstractItemModel.CheckIndexOption[]
flags()
Returns an array of flag objects represented by this CheckIndexOptions.QAbstractItemModel.CheckIndexOptions
setFlag(QAbstractItemModel.CheckIndexOption e)
Sets the flage
QAbstractItemModel.CheckIndexOptions
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>
-