digiKam
|
Public Types | |
enum | FavoriteType { FavoriteRoot = -1 , FavoriteFolder , FavoriteItem } |
Public Member Functions | |
QUrl | currentUrl () const |
QDate | date () const |
QString | description () const |
int | favoriteType () const |
QString | hierarchy () const |
QString | name () const |
void | setCurrentUrl (const QUrl &url) |
void | setDate (const QDate &date) |
void | setDescription (const QString &desc) |
void | setFavoriteType (int favoriteType) |
void | setHierarchy (const QString &desc) |
void | setName (const QString &name) |
void | setUrls (const QList< QUrl > &) |
ShowfotoStackViewFavoriteItem (QTreeWidget *const parent) | |
ShowfotoStackViewFavoriteItem (QTreeWidgetItem *const parent, int favType) | |
QList< QUrl > | urls () const |
QStringList | urlsToPaths () const |
~ShowfotoStackViewFavoriteItem () override | |
Static Public Member Functions | |
static QString | hierarchyFromParent (const QString &name, ShowfotoStackViewFavoriteItem *const pitem) |
|
explicit |
References FavoriteRoot, and setFavoriteType().
ShowFoto::ShowfotoStackViewFavoriteItem::ShowfotoStackViewFavoriteItem | ( | QTreeWidgetItem *const | parent, |
int | favType | ||
) |
References setFavoriteType().
|
override |
QUrl ShowFoto::ShowfotoStackViewFavoriteItem::currentUrl | ( | ) | const |
References urls().
Referenced by ShowFoto::ShowfotoStackViewFavorites::saveSettings(), and ShowFoto::ShowfotoStackViewFavoriteList::slotLoadContents().
QDate ShowFoto::ShowfotoStackViewFavoriteItem::date | ( | ) | const |
Referenced by ShowFoto::ShowfotoStackViewFavorites::saveSettings(), and setDate().
QString ShowFoto::ShowfotoStackViewFavoriteItem::description | ( | ) | const |
Referenced by ShowFoto::ShowfotoStackViewFavorites::saveSettings().
int ShowFoto::ShowfotoStackViewFavoriteItem::favoriteType | ( | ) | const |
Referenced by ShowFoto::ShowfotoStackViewFavorites::saveSettings(), and setFavoriteType().
QString ShowFoto::ShowfotoStackViewFavoriteItem::hierarchy | ( | ) | const |
|
static |
Helper static method to get hierarchy path from item. 'name' is the title and 'pitem" the parent instance.
References hierarchy(), and name().
Referenced by setName().
QString ShowFoto::ShowfotoStackViewFavoriteItem::name | ( | ) | const |
void ShowFoto::ShowfotoStackViewFavoriteItem::setCurrentUrl | ( | const QUrl & | url | ) |
Referenced by ShowFoto::ShowfotoStackViewFavorites::readSettings().
void ShowFoto::ShowfotoStackViewFavoriteItem::setDate | ( | const QDate & | date | ) |
References date().
Referenced by ShowFoto::ShowfotoStackViewFavorites::readSettings(), and setFavoriteType().
void ShowFoto::ShowfotoStackViewFavoriteItem::setDescription | ( | const QString & | desc | ) |
Referenced by ShowFoto::ShowfotoStackViewFavorites::readSettings(), and setFavoriteType().
void ShowFoto::ShowfotoStackViewFavoriteItem::setFavoriteType | ( | int | favoriteType | ) |
References FavoriteFolder, FavoriteRoot, favoriteType(), setDate(), setDescription(), setName(), and setUrls().
Referenced by ShowfotoStackViewFavoriteItem().
void ShowFoto::ShowfotoStackViewFavoriteItem::setHierarchy | ( | const QString & | desc | ) |
References hierarchy().
Referenced by ShowFoto::ShowfotoStackViewFavorites::readSettings(), and setName().
void ShowFoto::ShowfotoStackViewFavoriteItem::setName | ( | const QString & | name | ) |
References hierarchyFromParent(), name(), and setHierarchy().
Referenced by ShowFoto::ShowfotoStackViewFavorites::readSettings(), and setFavoriteType().
void ShowFoto::ShowfotoStackViewFavoriteItem::setUrls | ( | const QList< QUrl > & | urls | ) |
References urls().
Referenced by ShowFoto::ShowfotoStackViewFavorites::readSettings(), and setFavoriteType().
QList< QUrl > ShowFoto::ShowfotoStackViewFavoriteItem::urls | ( | ) | const |
QStringList ShowFoto::ShowfotoStackViewFavoriteItem::urlsToPaths | ( | ) | const |
Helper method to get a list local paths from image urls included in favorite item.
References urls().
Referenced by ShowFoto::ShowfotoStackViewFavoriteList::slotLoadContents().