// SPDX-FileCopyrightText: 2023 James Graham // SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-GPL import QtQuick 2.15 import QtTest 1.2 import org.kde.kirigamiaddons.labs.components 1.0 BaseAlbumMaximizeComponentTestCase { id: root name: "AlbumQmlListModelTest" model: ListModel { id: listModel } Component.onCompleted: { listModel.append({"type": AlbumModelItem.Image, "source": Qt.resolvedUrl(root.testImage), "sourceWidth": 0, "sourceHeight": 0, "tempSource": Qt.resolvedUrl(root.testImage), "caption": "A test image"}) listModel.append({"type": AlbumModelItem.Video, "source": Qt.resolvedUrl(root.testVideo), "sourceWidth": 0, "sourceHeight": 0, "tempSource": Qt.resolvedUrl(root.testImage), "caption": "A test video"}) listModel.append({"type": AlbumModelItem.Image, "source": Qt.resolvedUrl(root.testImage), "sourceWidth": 0, "sourceHeight": 0, "tempSource": Qt.resolvedUrl(root.testImage), "caption": ""}) } }