◆ RelativeSize
Album thumbnail size is configurable via the settings menu. Some widgets use smaller icons than other widgets. These widgets do not need to know the currently set icon size from the setup and calculate a smaller size, but can simply request a relatively smaller icon. Depending on the user-chosen icon size, this size may in fact not be smaller than the normal size.
Enumerator |
---|
NormalSize | |
SmallerSize | |
◆ cleanUp()
void Digikam::AlbumThumbnailLoader::cleanUp |
( |
| ) |
|
◆ getAlbumThumbnail()
bool Digikam::AlbumThumbnailLoader::getAlbumThumbnail |
( |
PAlbum *const |
album | ) |
|
Request thumbnail for given album. The thumbnail will be loaded and returned asynchronously by the signals. If no thumbnail is associated with given album, no action will be taken, and false is returned.
References Digikam::PAlbum::iconId().
◆ getAlbumThumbnailDirectly()
QPixmap Digikam::AlbumThumbnailLoader::getAlbumThumbnailDirectly |
( |
PAlbum *const |
album | ) |
|
◆ getFaceThumbnailDirectly()
QPixmap Digikam::AlbumThumbnailLoader::getFaceThumbnailDirectly |
( |
TAlbum *const |
album | ) |
|
◆ getNewTagIcon()
◆ getStandardAlbumIcon() [1/2]
◆ getStandardAlbumIcon() [2/2]
◆ getStandardAlbumRootIcon()
◆ getStandardAlbumTrashIcon()
◆ getStandardFaceIcon()
◆ getStandardTagIcon() [1/2]
◆ getStandardTagIcon() [2/2]
◆ getStandardTagRootIcon()
◆ getTagThumbnail()
bool Digikam::AlbumThumbnailLoader::getTagThumbnail |
( |
TAlbum *const |
album, |
|
|
QPixmap & |
icon |
|
) |
| |
Behaves similar to the above method. Tag thumbnails will be processed as appropriate. Tags may have associated an icon that is loaded synchronously by the system icon loader. In this case, icon is set to this icon, and false is returned. If no icon is associated with the tag, icon is set to null, and false is returned. If a custom icon is associated with the tag, it is loaded asynchronously, icon is set to null, and true is returned. Tag thumbnails are always smaller than album thumbnails - as small as an album thumbnail with SmallerSize. They are supposed to be blended into the standard tag icon obtained below, or used as is when SmallerSize is requested anyway.
- Returns
- Returns true if icon is loaded asynchronously.
References Digikam::TAlbum::icon(), and Digikam::TAlbum::iconId().
◆ getTagThumbnailDirectly()
QPixmap Digikam::AlbumThumbnailLoader::getTagThumbnailDirectly |
( |
TAlbum *const |
album | ) |
|
Loads tag thumbnail, with slightly different behavior than the above method: If the thumbnail is already available in the cache, it is returned, already blended with the standard icon, if requested. If the icon is not yet loaded, it will be returned asynchronously by the signals (unblended), and a default icon is returned here. If no icon is associated, the default icon is returned.
References getStandardTagIcon(), Digikam::Album::globalID(), Digikam::TAlbum::icon(), and Digikam::TAlbum::iconId().
Referenced by Digikam::TagModel::decorationRoleData().
◆ instance()
◆ setThumbnailSize()
void Digikam::AlbumThumbnailLoader::setThumbnailSize |
( |
int |
size, |
|
|
int |
face |
|
) |
| |
Change the size of the thumbnails. If the size differs from the current size, signalReloadThumbnails will be emitted.
References signalReloadThumbnails().
◆ signalDispatchThumbnailInternal
void Digikam::AlbumThumbnailLoader::signalDispatchThumbnailInternal |
( |
int |
albumID, |
|
|
const QPixmap & |
thumbnail |
|
) |
| |
|
signal |
Internal signal to dispatch Album thumbnail change.
◆ signalFailed
void Digikam::AlbumThumbnailLoader::signalFailed |
( |
Album * |
album | ) |
|
|
signal |
◆ signalReloadThumbnails
void Digikam::AlbumThumbnailLoader::signalReloadThumbnails |
( |
| ) |
|
|
signal |
Indicates that all album and tag thumbnails need to be reloaded. This is usually because the icon size has changed in the setup.
Referenced by setThumbnailSize().
◆ signalThumbnail
void Digikam::AlbumThumbnailLoader::signalThumbnail |
( |
Album * |
album, |
|
|
const QPixmap & |
|
|
) |
| |
|
signal |
This signal is emitted as soon as a thumbnail has become available for given album. This class is a singleton, so any object connected to this signal might not actually have requested a thumbnail for given url
Referenced by slotDispatchThumbnailInternal(), and slotGotThumbnailFromIcon().
◆ slotDispatchThumbnailInternal
void Digikam::AlbumThumbnailLoader::slotDispatchThumbnailInternal |
( |
int |
albumID, |
|
|
const QPixmap & |
thumbnail |
|
) |
| |
|
protectedslot |
◆ slotGotThumbnailFromIcon
void Digikam::AlbumThumbnailLoader::slotGotThumbnailFromIcon |
( |
const LoadingDescription & |
loadingDescription, |
|
|
const QPixmap & |
pixmap |
|
) |
| |
|
protectedslot |
◆ slotIconChanged
void Digikam::AlbumThumbnailLoader::slotIconChanged |
( |
Album * |
album | ) |
|
|
protectedslot |
◆ thumbnailSize()
int Digikam::AlbumThumbnailLoader::thumbnailSize |
( |
| ) |
const |
Get the current default icon size
◆ AlbumThumbnailLoaderCreator
friend class AlbumThumbnailLoaderCreator |
|
friend |
The documentation for this class was generated from the following files: