- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ToolBarFeatures(int value)
Creates a new ToolBarFeatures with givenvalue
.ToolBarFeatures(QStyleOptionToolBar.ToolBarFeature... args)
Creates a new ToolBarFeatures where the flags inargs
are set. -
Method Summary
Modifier and Type Method Description QStyleOptionToolBar.ToolBarFeatures
clone()
Clones the flagsQStyleOptionToolBar.ToolBarFeatures
combined(QStyleOptionToolBar.ToolBarFeature e)
Combines this flags with enum entry.int
compareTo(QStyleOptionToolBar.ToolBarFeatures other)
QStyleOptionToolBar.ToolBarFeature[]
flags()
Returns an array of flag objects represented by this ToolBarFeatures.QStyleOptionToolBar.ToolBarFeatures
setFlag(QStyleOptionToolBar.ToolBarFeature e)
Sets the flage
QStyleOptionToolBar.ToolBarFeatures
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>
-