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