- 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
ConstructorDescriptionCreates a new ToolBarFeatures.ToolBarFeatures
(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
final QStyleOptionToolBar.ToolBarFeature []
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
final void
setValue
(int value) Sets the value of this QFlags.final int
value()
Returns the value of this QFlags.
-
Constructor Details
-
ToolBarFeatures
public ToolBarFeatures()Creates a new ToolBarFeatures. -
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>
-
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
-