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