AlbumModelItem

Search for usage in LXR

AlbumModelItem Class Reference

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:

property list<AlbumModelItem> model: [
source: "path/to/source"
tempSource: "path/to/tempSource"
},
source: "path/to/source"
tempSource: "path/to/tempSource"
}
]
An object container for defining content items to show in a AlbumMaximizeComponent.
string source
The source for the item.
string tempSource
Source for the temporary content.
int type
The delegate type that should be shown for this item.

Definition at line 27 of file AlbumModelItem.qml.

Member Enumeration Documentation

◆ Type

enum class AlbumModelItem::Type
strong

Definition at line 29 of file AlbumModelItem.qml.

Property Documentation

◆ caption

string AlbumModelItem::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

string AlbumModelItem::source
read

The source for the item.

Definition at line 44 of file AlbumModelItem.qml.

◆ sourceHeight

real AlbumModelItem::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

real AlbumModelItem::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

string AlbumModelItem::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

int AlbumModelItem::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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.