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