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