- 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:
-
Constructor Summary
ConstructorDescriptionSelectionFlags
(int value) Creates a new SelectionFlags with givenvalue
.Creates a new SelectionFlags where the flags inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones the flagsCombines this flags with enum entry.final int
flags()
Returns an array of flag objects represented by this SelectionFlags.Sets the flage
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>
-