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