source: calamares/trunk/fuentes/src/branding/default/show.qml @ 7538

Last change on this file since 7538 was 7538, checked in by kbut, 13 months ago

sync with github

File size: 2.1 KB
Line 
1/* === This file is part of Calamares - <https://github.com/calamares> ===
2 *
3 *   Copyright 2015, Teo Mrnjavac <teo@kde.org>
4 *
5 *   Calamares is free software: you can redistribute it and/or modify
6 *   it under the terms of the GNU General Public License as published by
7 *   the Free Software Foundation, either version 3 of the License, or
8 *   (at your option) any later version.
9 *
10 *   Calamares is distributed in the hope that it will be useful,
11 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
12 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 *   GNU General Public License for more details.
14 *
15 *   You should have received a copy of the GNU General Public License
16 *   along with Calamares. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19import QtQuick 2.0;
20import calamares.slideshow 1.0;
21
22Presentation
23{
24    id: presentation
25
26    Timer {
27        id: advanceTimer
28        interval: 5000
29        running: false
30        repeat: true
31        onTriggered: presentation.goToNextSlide()
32    }
33   
34    Slide {
35
36        Image {
37            id: background
38            source: "squid.png"
39            width: 200; height: 200
40            fillMode: Image.PreserveAspectFit
41            anchors.centerIn: parent
42        }
43        Text {
44            anchors.horizontalCenter: background.horizontalCenter
45            anchors.top: background.bottom
46            text: "This is a customizable QML slideshow.<br/>"+
47                  "Distributions should provide their own slideshow and list it in <br/>"+
48                  "their custom branding.desc file.<br/>"+
49                  "To create a Calamares presentation in QML, import calamares.slideshow,<br/>"+
50                  "define a Presentation element with as many Slide elements as needed."
51            wrapMode: Text.WordWrap
52            width: presentation.width
53            horizontalAlignment: Text.Center
54        }
55    }
56
57    Slide {
58        centeredText: "This is a second Slide element."
59    }
60
61    Slide {
62        centeredText: "This is a third Slide element."
63    }
64
65    Component.onCompleted: advanceTimer.running = true
66}
Note: See TracBrowser for help on using the repository browser.