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