- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description 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 Type Method Description Qt.MatchFlags
clone()
Clones the flagsQt.MatchFlags
combined(Qt.MatchFlag e)
Combines this flags with enum entry.int
compareTo(Qt.MatchFlags other)
Qt.MatchFlag[]
flags()
Returns an array of flag objects represented by this MatchFlags.Qt.MatchFlags
setFlag(Qt.MatchFlag e)
Sets the flage
Qt.MatchFlags
setFlag(Qt.MatchFlag e, boolean on)
Sets or clears the flagflag
-
Constructor Details
-
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>
-