|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Enum
com.trolltech.qt.core.QDir.SortFlag
public static final class QDir.SortFlag
This enum describes the sort options available to QDir
, e.g. for entryList()
and entryInfoList()
. The sort value is specified by OR-ing together values from the following list: You can only specify one of the first four.
If you specify both DirsFirst
and Reversed, directories are still put first, but in reverse order; the files will be listed after the directories, again in reverse order.
Field Summary | |
---|---|
static QDir.SortFlag |
DirsFirst
Put the directories first, then the files. |
static QDir.SortFlag |
DirsLast
Put the files first, then the directories. |
static QDir.SortFlag |
IgnoreCase
Sort case-insensitively. |
static QDir.SortFlag |
LocaleAware
Sort items appropriately using the current locale settings. |
static QDir.SortFlag |
Name
Sort by name. |
static QDir.SortFlag |
NoSort
Not sorted by default. |
static QDir.SortFlag |
Reversed
Reverse the sort order. |
static QDir.SortFlag |
Size
Sort by file size. |
static QDir.SortFlag |
SortByMask
|
static QDir.SortFlag |
Time
Sort by time (modification time). |
static QDir.SortFlag |
Type
Sort by file type (extension). |
Method Summary | |
---|---|
static QDir.SortFlags |
createQFlags(QDir.SortFlag[] values)
|
static QDir.SortFlag |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static QDir.SortFlag |
valueOf(java.lang.String name)
|
static QDir.SortFlag[] |
values()
|
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final QDir.SortFlag Name
public static final QDir.SortFlag Time
public static final QDir.SortFlag Size
public static final QDir.SortFlag SortByMask
public static final QDir.SortFlag DirsFirst
public static final QDir.SortFlag Reversed
public static final QDir.SortFlag IgnoreCase
public static final QDir.SortFlag DirsLast
public static final QDir.SortFlag LocaleAware
public static final QDir.SortFlag Type
public static final QDir.SortFlag NoSort
Method Detail |
---|
public static QDir.SortFlag[] values()
public static QDir.SortFlag valueOf(java.lang.String name)
public int value()
value
in interface QtEnumerator
public static QDir.SortFlags createQFlags(QDir.SortFlag[] values)
public static QDir.SortFlag resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |