- 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
ConstructorDescriptionCreates a new CacheMode.CacheMode
(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
final void
setValue
(int value) Sets the value of this QFlags.final int
value()
Returns the value of this QFlags.
-
Constructor Details
-
CacheMode
public CacheMode()Creates a new CacheMode. -
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>
-
value
public final int value()Returns the value of this QFlags. -
setValue
public final void setValue(int value) Sets the value of this QFlags.- Parameters:
value
- new value
-