- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QDateTimeEdit.Sections>
- Enclosing class:
QDateTimeEdit
public static final class QDateTimeEdit.Sections
extends QFlags<QDateTimeEdit.Section>
implements Comparable<QDateTimeEdit.Sections>
QFlags
type for enum QDateTimeEdit.Section
- See Also:
-
Constructor Summary
ConstructorDescriptionSections()
Creates a new Sections.Sections
(int value) Creates a new Sections with givenvalue
.Sections
(QDateTimeEdit.Section ... args) Creates a new Sections where the flags inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QDateTimeEdit.Sections
clone()
Clones the flagsfinal QDateTimeEdit.Sections
Combines this flags with enum entry.final int
compareTo
(QDateTimeEdit.Sections other) final QDateTimeEdit.Section []
flags()
Returns an array of flag objects represented by this Sections.final QDateTimeEdit.Sections
Sets the flage
final QDateTimeEdit.Sections
setFlag
(QDateTimeEdit.Section 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
-
Sections
public Sections()Creates a new Sections. -
Sections
Creates a new Sections where the flags inargs
are set.- Parameters:
args
- enum entries
-
Sections
public Sections(int value) Creates a new Sections with givenvalue
.- Parameters:
value
-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QDateTimeEdit.Section>
- Parameters:
e
- enum entry- Returns:
- new Sections
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QDateTimeEdit.Section>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QDateTimeEdit.Section>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this Sections.- Overrides:
flags
in classQFlags<QDateTimeEdit.Section>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QDateTimeEdit.Section>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QDateTimeEdit.Sections>
-
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
-