java.lang.Object
io.qt.QFlags<QStyleOptionViewItem.ViewItemFeature>
io.qt.widgets.QStyleOptionViewItem.ViewItemFeatures
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QStyleOptionViewItem.ViewItemFeatures>
- Enclosing class:
- QStyleOptionViewItem
public static final class QStyleOptionViewItem.ViewItemFeatures
extends QFlags<QStyleOptionViewItem.ViewItemFeature>
implements Comparable<QStyleOptionViewItem.ViewItemFeatures>
QFlags type for enum
QStyleOptionViewItem.ViewItemFeature
- See Also:
-
Constructor Summary
ConstructorDescriptionViewItemFeatures
(int value) Creates a new ViewItemFeatures with givenvalue
.Creates a new ViewItemFeatures 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 ViewItemFeatures.Sets the flage
setFlag
(QStyleOptionViewItem.ViewItemFeature e, boolean on) Sets or clears the flagflag
-
Constructor Details
-
ViewItemFeatures
Creates a new ViewItemFeatures where the flags inargs
are set.- Parameters:
args
- enum entries
-
ViewItemFeatures
public ViewItemFeatures(int value) Creates a new ViewItemFeatures with givenvalue
.- Parameters:
value
-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QStyleOptionViewItem.ViewItemFeature>
- Parameters:
e
- enum entry- Returns:
- new ViewItemFeatures
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QStyleOptionViewItem.ViewItemFeature>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
public final QStyleOptionViewItem.ViewItemFeatures setFlag(QStyleOptionViewItem.ViewItemFeature e, boolean on) Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QStyleOptionViewItem.ViewItemFeature>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this ViewItemFeatures.- Overrides:
flags
in classQFlags<QStyleOptionViewItem.ViewItemFeature>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QStyleOptionViewItem.ViewItemFeature>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QStyleOptionViewItem.ViewItemFeatures>
-