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