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