- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description 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 Type Method Description QGraphicsView.CacheMode
clone()
Clones the flagsQGraphicsView.CacheMode
combined(QGraphicsView.CacheModeFlag e)
Combines this flags with enum entry.int
compareTo(QGraphicsView.CacheMode other)
QGraphicsView.CacheModeFlag[]
flags()
Returns an array of flag objects represented by this CacheMode.QGraphicsView.CacheMode
setFlag(QGraphicsView.CacheModeFlag e)
Sets the flage
QGraphicsView.CacheMode
setFlag(QGraphicsView.CacheModeFlag e, boolean on)
Sets or clears the flagflag
-
Constructor Details
-
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>
-