- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description OptimizationFlags(int value)
Creates a new OptimizationFlags with givenvalue
.OptimizationFlags(QGraphicsView.OptimizationFlag... args)
Creates a new OptimizationFlags where the flags inargs
are set. -
Method Summary
Modifier and Type Method Description QGraphicsView.OptimizationFlags
clone()
Clones the flagsQGraphicsView.OptimizationFlags
combined(QGraphicsView.OptimizationFlag e)
Combines this flags with enum entry.int
compareTo(QGraphicsView.OptimizationFlags other)
QGraphicsView.OptimizationFlag[]
flags()
Returns an array of flag objects represented by this OptimizationFlags.QGraphicsView.OptimizationFlags
setFlag(QGraphicsView.OptimizationFlag e)
Sets the flage
QGraphicsView.OptimizationFlags
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>
-