- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description AutoFormatting(int value)
Creates a new AutoFormatting with givenvalue
.AutoFormatting(QTextEdit.AutoFormattingFlag... args)
Creates a new AutoFormatting where the flags inargs
are set. -
Method Summary
Modifier and Type Method Description QTextEdit.AutoFormatting
clone()
Clones the flagsQTextEdit.AutoFormatting
combined(QTextEdit.AutoFormattingFlag e)
Combines this flags with enum entry.int
compareTo(QTextEdit.AutoFormatting other)
QTextEdit.AutoFormattingFlag[]
flags()
Returns an array of flag objects represented by this AutoFormatting.QTextEdit.AutoFormatting
setFlag(QTextEdit.AutoFormattingFlag e)
Sets the flage
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>
-