- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ControlTypes(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 Type Method Description QSizePolicy.ControlTypes
clone()
Clones the flagsQSizePolicy.ControlTypes
combined(QSizePolicy.ControlType e)
Combines this flags with enum entry.int
compareTo(QSizePolicy.ControlTypes other)
QSizePolicy.ControlType[]
flags()
Returns an array of flag objects represented by this ControlTypes.QSizePolicy.ControlTypes
setFlag(QSizePolicy.ControlType e)
Sets the flage
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>
-