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