pub struct SortFlag(/* private fields */);
Expand description
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:
C++ enum: 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.
The SortFlags type is a typedef for QFlags<SortFlag>. It stores an OR combination of SortFlag values.
Implementations§
source§impl SortFlag
impl SortFlag
sourcepub const SortByMask: SortFlag = _
pub const SortByMask: SortFlag = _
C++ enum variant: SortByMask = 3
sourcepub const DirsFirst: SortFlag = _
pub const DirsFirst: SortFlag = _
Put the directories first, then the files. (C++ enum variant: DirsFirst = 4
)
sourcepub const IgnoreCase: SortFlag = _
pub const IgnoreCase: SortFlag = _
Sort case-insensitively. (C++ enum variant: IgnoreCase = 16
)
sourcepub const DirsLast: SortFlag = _
pub const DirsLast: SortFlag = _
Put the files first, then the directories. (C++ enum variant: DirsLast = 32
)
sourcepub const LocaleAware: SortFlag = _
pub const LocaleAware: SortFlag = _
Sort items appropriately using the current locale settings. (C++ enum variant: LocaleAware = 64
)