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