224 lines
5.4 KiB
QML
224 lines
5.4 KiB
QML
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
||
|
*
|
||
|
* SPDX-FileCopyrightText: 2015 Teo Mrnjavac <teo@kde.org>
|
||
|
* SPDX-FileCopyrightText: 2018 Adriaan de Groot <groot@kde.org>
|
||
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||
|
*
|
||
|
* Calamares is Free Software: see the License-Identifier above.
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
import QtQuick 2.0;
|
||
|
import calamares.slideshow 1.0;
|
||
|
|
||
|
Presentation
|
||
|
{
|
||
|
id: presentation
|
||
|
|
||
|
function nextSlide() {
|
||
|
console.log("QML Component (default slideshow) Next slide");
|
||
|
presentation.goToNextSlide();
|
||
|
}
|
||
|
|
||
|
Timer {
|
||
|
id: advanceTimer
|
||
|
interval: 5000
|
||
|
running: presentation.activatedInCalamares
|
||
|
repeat: true
|
||
|
onTriggered: nextSlide()
|
||
|
}
|
||
|
|
||
|
Slide {
|
||
|
anchors.fill: parent
|
||
|
anchors.verticalCenterOffset: 0
|
||
|
Image {
|
||
|
id: background1
|
||
|
source: "calamares-0.png"
|
||
|
width: parent.width; height: parent.height
|
||
|
verticalAlignment: Image.AlignTop
|
||
|
fillMode: Image.Stretch
|
||
|
anchors.fill: parent
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
Slide {
|
||
|
anchors.fill: parent
|
||
|
anchors.verticalCenterOffset: 0
|
||
|
Image {
|
||
|
id: background2
|
||
|
source: "calamares-2.png"
|
||
|
width: parent.width; height: parent.height
|
||
|
verticalAlignment: Image.AlignTop
|
||
|
fillMode: Image.Stretch
|
||
|
anchors.fill: parent
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
Slide {
|
||
|
anchors.fill: parent
|
||
|
anchors.verticalCenterOffset: 0
|
||
|
Image {
|
||
|
id: background4
|
||
|
source: "calamares-3.png"
|
||
|
width: parent.width; height: parent.height
|
||
|
verticalAlignment: Image.AlignTop
|
||
|
fillMode: Image.Stretch
|
||
|
anchors.fill: parent
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
Slide {
|
||
|
anchors.fill: parent
|
||
|
anchors.verticalCenterOffset: 0
|
||
|
Image {
|
||
|
id: background5
|
||
|
source: "calamares-4.png"
|
||
|
width: parent.width; height: parent.height
|
||
|
verticalAlignment: Image.AlignTop
|
||
|
fillMode: Image.Stretch
|
||
|
anchors.fill: parent
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
Slide {
|
||
|
anchors.fill: parent
|
||
|
anchors.verticalCenterOffset: 0
|
||
|
Image {
|
||
|
id: background6
|
||
|
source: "calamares-5.png"
|
||
|
width: parent.width; height: parent.height
|
||
|
verticalAlignment: Image.AlignTop
|
||
|
fillMode: Image.Stretch
|
||
|
anchors.fill: parent
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
Slide {
|
||
|
anchors.fill: parent
|
||
|
anchors.verticalCenterOffset: 0
|
||
|
Image {
|
||
|
id: background7
|
||
|
source: "calamares-6.png"
|
||
|
width: parent.width; height: parent.height
|
||
|
verticalAlignment: Image.AlignTop
|
||
|
fillMode: Image.Stretch
|
||
|
anchors.fill: parent
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
Slide {
|
||
|
anchors.fill: parent
|
||
|
anchors.verticalCenterOffset: 0
|
||
|
Image {
|
||
|
id: background8
|
||
|
source: "calamares-7.png"
|
||
|
width: parent.width; height: parent.height
|
||
|
verticalAlignment: Image.AlignTop
|
||
|
fillMode: Image.Stretch
|
||
|
anchors.fill: parent
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
Slide {
|
||
|
anchors.fill: parent
|
||
|
anchors.verticalCenterOffset: 0
|
||
|
Image {
|
||
|
id: background9
|
||
|
source: "calamares-8.png"
|
||
|
width: parent.width; height: parent.height
|
||
|
verticalAlignment: Image.AlignTop
|
||
|
fillMode: Image.Stretch
|
||
|
anchors.fill: parent
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
Slide {
|
||
|
anchors.fill: parent
|
||
|
anchors.verticalCenterOffset: 0
|
||
|
Image {
|
||
|
id: background10
|
||
|
source: "calamares-9.png"
|
||
|
width: parent.width; height: parent.height
|
||
|
verticalAlignment: Image.AlignTop
|
||
|
fillMode: Image.Stretch
|
||
|
anchors.fill: parent
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
Slide {
|
||
|
anchors.fill: parent
|
||
|
anchors.verticalCenterOffset: 0
|
||
|
Image {
|
||
|
id: background11
|
||
|
source: "calamares-10.png"
|
||
|
width: parent.width; height: parent.height
|
||
|
verticalAlignment: Image.AlignTop
|
||
|
fillMode: Image.Stretch
|
||
|
anchors.fill: parent
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
Slide {
|
||
|
anchors.fill: parent
|
||
|
anchors.verticalCenterOffset: 0
|
||
|
Image {
|
||
|
id: background12
|
||
|
source: "calamares-11.png"
|
||
|
width: parent.width; height: parent.height
|
||
|
verticalAlignment: Image.AlignTop
|
||
|
fillMode: Image.Stretch
|
||
|
anchors.fill: parent
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
Slide {
|
||
|
anchors.fill: parent
|
||
|
anchors.verticalCenterOffset: 0
|
||
|
Image {
|
||
|
id: background13
|
||
|
source: "calamares-12.png"
|
||
|
width: parent.width; height: parent.height
|
||
|
verticalAlignment: Image.AlignTop
|
||
|
fillMode: Image.Stretch
|
||
|
anchors.fill: parent
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
Slide {
|
||
|
anchors.fill: parent
|
||
|
anchors.verticalCenterOffset: 0
|
||
|
Image {
|
||
|
id: background14
|
||
|
source: "calamares-13.png"
|
||
|
width: parent.width; height: parent.height
|
||
|
verticalAlignment: Image.AlignTop
|
||
|
fillMode: Image.Stretch
|
||
|
anchors.fill: parent
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
function onActivate() {
|
||
|
console.log("QML Component (default slideshow) activated");
|
||
|
presentation.currentSlide = 0;
|
||
|
}
|
||
|
|
||
|
function onLeave() {
|
||
|
console.log("QML Component (default slideshow) deactivated");
|
||
|
}
|
||
|
|
||
|
}
|