AlbumModelItem
Public Types | |
enum class | Type { Image , Video } |
Properties | |
string | caption |
string | source |
real | sourceHeight |
real | sourceWidth |
string | tempSource |
int | type |
Detailed Description
An object container for defining content items to show in a AlbumMaximizeComponent.
The intended use is that a list of these can be used as the ListView model for a AlbumMaximizeComponent.
Example definition:
Definition at line 27 of file AlbumModelItem.qml.
Member Enumeration Documentation
◆ Type
|
strong |
Definition at line 29 of file AlbumModelItem.qml.
Property Documentation
◆ caption
|
read |
The caption for the item.
Typically set to the filename if no caption is available.
Definition at line 57 of file AlbumModelItem.qml.
◆ source
|
read |
The source for the item.
Definition at line 44 of file AlbumModelItem.qml.
◆ sourceHeight
|
read |
The height of the source image.
Used to calculate the aspect ratio of the image.
Definition at line 63 of file AlbumModelItem.qml.
◆ sourceWidth
|
read |
The width of the source image.
Used to calculate the aspect ratio of the image.
Definition at line 69 of file AlbumModelItem.qml.
◆ tempSource
|
read |
Source for the temporary content.
Typically used when downloading the image to show a thumbnail or other temporary image while the main image downloads.
Definition at line 51 of file AlbumModelItem.qml.
◆ type
|
read |
The delegate type that should be shown for this item.
Possible values:
- AlbumModelItem.Image - Show an image delegate (including GIFs).
- AlbumModelItem.Video - Show a video delegate.
Definition at line 40 of file AlbumModelItem.qml.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:12:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.