- 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
ConstructorsConstructorDescriptionControlTypes(int value) Creates a new ControlTypes with givenvalue.ControlTypes(QSizePolicy.ControlType ... args) Creates a new ControlTypes where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QSizePolicy.ControlTypesclone()Clones the flagsfinal QSizePolicy.ControlTypesCombines this flags with enum entry.final intfinal QSizePolicy.ControlType []flags()Returns an array of flag objects represented by this ControlTypes.final QSizePolicy.ControlTypesSets the flagefinal QSizePolicy.ControlTypessetFlag(QSizePolicy.ControlType e, boolean on) Sets or clears the flagflag
-
Constructor Details
-
ControlTypes
Creates a new ControlTypes where the flags inargsare 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:
combinedin classQFlags<QSizePolicy.ControlType>- Parameters:
e- enum entry- Returns:
- new ControlTypes
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QSizePolicy.ControlType>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin 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:
flagsin classQFlags<QSizePolicy.ControlType>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QSizePolicy.ControlType>
-
compareTo
- Specified by:
compareToin interfaceComparable<QSizePolicy.ControlTypes>
-