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