![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
Public Types | |
| enum | CategorizationMode { NoCategories , CategoryByFolder , CategoryByFormat } |
| enum | SortOrder { AscendingOrder = Qt::AscendingOrder , DescendingOrder = Qt::DescendingOrder , DefaultOrder } |
| enum | SortRole { SortByCreationDate , SortByFileName , SortByFileSize } |
Public Member Functions | |
| int | compare (const ShowfotoItemInfo &left, const ShowfotoItemInfo &right) const |
| Compares the showfotoItemInfos left and right. | |
| int | compare (const ShowfotoItemInfo &left, const ShowfotoItemInfo &right, SortRole sortRole) const |
| int | compareCategories (const ShowfotoItemInfo &left, const ShowfotoItemInfo &right) const |
| Compares the categories of left and right ShowfotoItemInfos. | |
| bool | isCategorized () const |
| bool | lessThan (const QVariant &left, const QVariant &right) const |
| Returns true if left QVariant is less than right. | |
| bool | lessThan (const ShowfotoItemInfo &left, const ShowfotoItemInfo &right) const |
| Returns true if left is less than right. | |
| bool | operator== (const ShowfotoItemSortSettings &other) const |
| void | setCategorizationMode (CategorizationMode mode) |
| — Categories ------------— | |
| void | setCategorizationSortOrder (SortOrder order) |
| void | setSortOrder (SortOrder order) |
| void | setSortRole (SortRole role) |
| — Showfoto Items Sorting ------------— | |
Public Attributes | |
| Qt::CaseSensitivity | categorizationCaseSensitivity = Qt::CaseSensitive |
| CategorizationMode | categorizationMode = NoCategories |
| SortOrder | categorizationSortOrder = DefaultOrder |
| Qt::SortOrder | currentCategorizationSortOrder = Qt::AscendingOrder |
| Only Ascending or Descending, never be DefaultOrder. | |
| Qt::SortOrder | currentSortOrder = Qt::AscendingOrder |
| Qt::CaseSensitivity | sortCaseSensitivity = Qt::CaseSensitive |
| SortOrder | sortOrder = DefaultOrder |
| SortRole | sortRole = SortByFileName |
| int ShowFoto::ShowfotoItemSortSettings::compare | ( | const ShowfotoItemInfo & | left, |
| const ShowfotoItemInfo & | right | ||
| ) | const |
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.
| int ShowFoto::ShowfotoItemSortSettings::compareCategories | ( | const ShowfotoItemInfo & | left, |
| const ShowfotoItemInfo & | right | ||
| ) | const |
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.
| bool ShowFoto::ShowfotoItemSortSettings::lessThan | ( | const QVariant & | left, |
| const QVariant & | right | ||
| ) | const |
Adheres to current sort role and sort order.
| bool ShowFoto::ShowfotoItemSortSettings::lessThan | ( | const ShowfotoItemInfo & | left, |
| const ShowfotoItemInfo & | right | ||
| ) | const |
Adheres to current sort role and sort order.