AlbumModelItem QML Type
An object container for defining content items to show in an AlbumMaximizeComponent. More...
- Import Statement: import org.kde.kirigamiaddons.labs.components
Detailed Description
The intended use is that a list of these can be used as the ListView model for a AlbumMaximizeComponent.
Example definition:
property list<AlbumModelItem> model: [
AlbumModelItem {
type: AlbumModelItem.Image
source: "path/to/source"
tempSource: "path/to/tempSource"
},
AlbumModelItem {
type: AlbumModelItem.Video
source: "path/to/source"
tempSource: "path/to/tempSource"
}
]
Property Documentation
[default: ""] caption : string
The caption for the item.
Typically set to the filename if no caption is available.
source : string
The source for the item.
[default: 0] sourceHeight : real
The height of the source image.
Used to calculate the aspect ratio of the image.
[default: 0] sourceWidth : real
The width of the source image.
Used to calculate the aspect ratio of the image.
[default: ""] tempSource : string
Source for the temporary content.
Typically used when downloading the image to show a thumbnail or other temporary image while the main image downloads.
type : int
The delegate type that should be shown for this item.
Possible values:
| Constant | Description |
|---|---|
| AlbumModelItem.Image | Show an image delegate (including GIFs). |
| AlbumModelItem.Video | Show a video delegate. |