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