AlbumModelItem QML Type

An object container for defining content items to show in an AlbumMaximizeComponent. More...

Import Statement: import org.kde.kirigamiaddons.labs.components

Properties

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

caption : string [default: ""]

The caption for the item.

Typically set to the filename if no caption is available.


source : string

The source for the item.


sourceHeight : real [default: 0]

The height of the source image.

Used to calculate the aspect ratio of the image.


sourceWidth : real [default: 0]

The width of the source image.

Used to calculate the aspect ratio of the image.


tempSource : string [default: ""]

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:

ConstantDescription
AlbumModelItem.ImageShow an image delegate (including GIFs).
AlbumModelItem.VideoShow a video delegate.