- 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
ConstructorDescriptionStepEnabled
(int value) Creates a new StepEnabled with givenvalue
.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
-
Constructor Details
-
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>
-