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