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