◆ CategorizationMode
Enumerator |
---|
NoCategories | |
CategoryByFolder | |
CategoryByFormat | |
◆ SortOrder
Enumerator |
---|
AscendingOrder | |
DescendingOrder | |
DefaultOrder | sort order depends on the chosen sort role
|
◆ SortRole
Enumerator |
---|
SortByCreationDate | |
SortByFileName | |
SortByFileSize | |
◆ ShowfotoItemSortSettings()
ShowFoto::ShowfotoItemSortSettings::ShowfotoItemSortSettings |
( |
| ) |
|
◆ ~ShowfotoItemSortSettings()
ShowFoto::ShowfotoItemSortSettings::~ShowfotoItemSortSettings |
( |
| ) |
|
◆ compare() [1/2]
Compares the showfotoItemInfos left and right. Return -1 if left is less than right, 1 if left is greater than right, and 0 if left equals right comparing the current sort role's value. Adheres to set sort role and sort order.
References sortRole.
Referenced by lessThan().
◆ compare() [2/2]
References compareByOrder(), ShowFoto::ShowfotoItemInfo::ctime, currentSortOrder, ShowFoto::ShowfotoItemInfo::dtime, ShowFoto::ShowfotoItemInfo::name, naturalCompare(), ShowFoto::ShowfotoItemInfo::size, SortByCreationDate, SortByFileName, SortByFileSize, and sortCaseSensitivity.
◆ compareByOrder() [1/2]
template<typename T >
static int ShowFoto::ShowfotoItemSortSettings::compareByOrder |
( |
const T & |
a, |
|
|
const T & |
b, |
|
|
Qt::SortOrder |
sortOrder |
|
) |
| |
|
inlinestatic |
◆ compareByOrder() [2/2]
static int ShowFoto::ShowfotoItemSortSettings::compareByOrder |
( |
int |
compareResult, |
|
|
Qt::SortOrder |
sortOrder |
|
) |
| |
|
inlinestatic |
◆ compareCategories()
Compares the categories of left and right ShowfotoItemInfos. It returns -1 if the left ShowfotoItemInfo is less than right, and 0 if both fall in the same category, and 1 if the left ShowfotoItemInfo is greater than right. Adheres to set categorization mode and current category sort order.
References categorizationCaseSensitivity, categorizationMode, CategoryByFolder, CategoryByFormat, currentCategorizationSortOrder, ShowFoto::ShowfotoItemInfo::folder, ShowFoto::ShowfotoItemInfo::mime, naturalCompare(), and NoCategories.
◆ compareValue()
template<typename T >
static int ShowFoto::ShowfotoItemSortSettings::compareValue |
( |
const T & |
a, |
|
|
const T & |
b |
|
) |
| |
|
inlinestatic |
Returns the usual compare result of -1, 0, or 1 for lessThan, equals and greaterThan.
Referenced by compareByOrder().
◆ defaultSortOrderForCategorizationMode()
Qt::SortOrder ShowFoto::ShowfotoItemSortSettings::defaultSortOrderForCategorizationMode |
( |
CategorizationMode |
mode | ) |
|
|
static |
◆ defaultSortOrderForSortRole()
Qt::SortOrder ShowFoto::ShowfotoItemSortSettings::defaultSortOrderForSortRole |
( |
SortRole |
role | ) |
|
|
static |
◆ isCategorized()
bool ShowFoto::ShowfotoItemSortSettings::isCategorized |
( |
| ) |
const |
|
inline |
◆ lessThan() [1/2]
bool ShowFoto::ShowfotoItemSortSettings::lessThan |
( |
const QVariant & |
left, |
|
|
const QVariant & |
right |
|
) |
| const |
◆ lessThan() [2/2]
◆ lessThanByOrder()
template<typename T >
static bool ShowFoto::ShowfotoItemSortSettings::lessThanByOrder |
( |
const T & |
a, |
|
|
const T & |
b, |
|
|
Qt::SortOrder |
sortOrder |
|
) |
| |
|
inlinestatic |
Returns a < b if sortOrder is Ascending, or b < a if order is descending
References sortOrder.
◆ naturalCompare()
static int ShowFoto::ShowfotoItemSortSettings::naturalCompare |
( |
const QString & |
a, |
|
|
const QString & |
b, |
|
|
Qt::SortOrder |
sortOrder, |
|
|
Qt::CaseSensitivity |
caseSensitive = Qt::CaseSensitive |
|
) |
| |
|
inlinestatic |
◆ operator==()
◆ setCategorizationMode()
◆ setCategorizationSortOrder()
void ShowFoto::ShowfotoItemSortSettings::setCategorizationSortOrder |
( |
SortOrder |
order | ) |
|
◆ setSortOrder()
void ShowFoto::ShowfotoItemSortSettings::setSortOrder |
( |
SortOrder |
order | ) |
|
◆ setSortRole()
void ShowFoto::ShowfotoItemSortSettings::setSortRole |
( |
SortRole |
role | ) |
|
◆ categorizationCaseSensitivity
Qt::CaseSensitivity ShowFoto::ShowfotoItemSortSettings::categorizationCaseSensitivity |
◆ categorizationMode
◆ categorizationSortOrder
SortOrder ShowFoto::ShowfotoItemSortSettings::categorizationSortOrder |
◆ currentCategorizationSortOrder
Qt::SortOrder ShowFoto::ShowfotoItemSortSettings::currentCategorizationSortOrder |
◆ currentSortOrder
Qt::SortOrder ShowFoto::ShowfotoItemSortSettings::currentSortOrder |
◆ sortCaseSensitivity
Qt::CaseSensitivity ShowFoto::ShowfotoItemSortSettings::sortCaseSensitivity |
◆ sortOrder
SortOrder ShowFoto::ShowfotoItemSortSettings::sortOrder |
◆ sortRole
SortRole ShowFoto::ShowfotoItemSortSettings::sortRole |
The documentation for this class was generated from the following files: