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