Warning, /graphics/koko/src/qml/imagedelegate/AnimatedImageDelegate.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  * SPDX-FileCopyrightText: (C) 2015 Vishesh Handa <vhanda@kde.org>
0003  * SPDX-FileCopyrightText: (C) 2017 Atul Sharma <atulsharma406@gmail.com>
0004  * SPDX-FileCopyrightText: (C) 2017 Marco Martin <mart@kde.org>
0005  * SPDX-FileCopyrightText: (C) 2021 Noah Davis <noahadvs@gmail.com>
0006  * SPDX-FileCopyrightText: (C) 2021 Mikel Johnson <mikel5764@gmail.com>
0007  * SPDX-FileCopyrightText: (C) 2021 Arjen Hiemstra <ahiemstra@heimr.nl>
0008  *
0009  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0010  */
0011 
0012 import QtQuick 2.15
0013 import org.kde.kirigami 2.15 as Kirigami
0014 import org.kde.koko 0.1
0015 
0016 BaseImageDelegate {
0017     id: root
0018 
0019     loaded: image.status == Image.Ready
0020     loading: image.status == Image.Loading
0021 
0022     sourceWidth: imageInfo.width
0023     sourceHeight: imageInfo.height
0024 
0025     AnimatedImage {
0026         id: image
0027 
0028         anchors.fill: parent
0029         fillMode: Image.PreserveAspectFit
0030         source: root.source
0031         smooth: root.zoomFactor < 1
0032         autoTransform: true
0033         asynchronous: true
0034         cache: false
0035     }
0036 
0037     FileInfo {
0038         id: imageInfo
0039         source: root.source
0040     }
0041 }
0042 
0043