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