- 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
ConstructorsConstructorDescriptionCreates a new SelectionFlags.SelectionFlags(int value) Creates a new SelectionFlags with givenvalue.Creates a new SelectionFlags where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones the flagsCombines this flags with enum entry.final intfinal QItemSelectionModel.SelectionFlag []flags()Returns an array of flag objects represented by this SelectionFlags.Sets the flagesetFlag(QItemSelectionModel.SelectionFlag e, boolean on) Sets or clears the flagflagfinal voidsetValue(int value) Sets the value of this QFlags.final intvalue()Returns the value of this QFlags.
-
Constructor Details
-
SelectionFlags
public SelectionFlags()Creates a new SelectionFlags. -
SelectionFlags
Creates a new SelectionFlags where the flags inargsare 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:
combinedin classQFlags<QItemSelectionModel.SelectionFlag>- Parameters:
e- enum entry- Returns:
- new SelectionFlags
-
setFlag
Sets the flage- Overrides:
setFlagin 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:
setFlagin 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:
flagsin classQFlags<QItemSelectionModel.SelectionFlag>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QItemSelectionModel.SelectionFlag>
-
compareTo
- Specified by:
compareToin interfaceComparable<QItemSelectionModel.SelectionFlags>
-
value
public final int value()Returns the value of this QFlags. -
setValue
public final void setValue(int value) Sets the value of this QFlags.- Parameters:
value- new value
-