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