- 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:
-
Constructor Summary
ConstructorDescriptionDockOptions
(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 TypeMethodDescriptionfinal QMainWindow.DockOptions
clone()
Clones the flagsfinal QMainWindow.DockOptions
Combines this flags with enum entry.final int
compareTo
(QMainWindow.DockOptions other) final QMainWindow.DockOption []
flags()
Returns an array of flag objects represented by this DockOptions.final QMainWindow.DockOptions
Sets the flage
final 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>
-