2020-02-09 01:03:52 +01:00
|
|
|
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
|
|
|
*
|
|
|
|
* Copyright 2020, Anke Boersma <demm@kaosx.us>
|
2020-02-12 16:21:13 +01:00
|
|
|
* Copyright 2020, Adriaan de Groot <groot@kde.org>
|
2020-08-22 01:19:58 +02:00
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2020-02-09 01:03:52 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-02-12 16:21:13 +01:00
|
|
|
/* Some Calamares internals are available to all QML modules.
|
2020-03-12 17:30:08 +01:00
|
|
|
* They live in the io.calamares namespace (filled programmatically
|
|
|
|
* by Calamares). One of the internals that is exposed in the sub-
|
|
|
|
* namespace io.calamares.ui is the Branding object, which can be used
|
|
|
|
* to retrieve strings and paths and colors. For a full list, see
|
2020-03-12 17:37:39 +01:00
|
|
|
* the documentation in `Qml.h`.
|
2020-02-12 16:21:13 +01:00
|
|
|
*/
|
2020-03-11 17:42:19 +01:00
|
|
|
import io.calamares.ui 1.0
|
2020-02-12 16:21:13 +01:00
|
|
|
|
2020-02-09 01:03:52 +01:00
|
|
|
import QtQuick 2.7
|
|
|
|
import QtQuick.Controls 2.2
|
|
|
|
import QtQuick.Window 2.2
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import QtQuick.Controls.Material 2.1
|
|
|
|
|
|
|
|
Item {
|
|
|
|
width: 740
|
|
|
|
height: 420
|
|
|
|
|
|
|
|
Flickable {
|
|
|
|
id: flick
|
|
|
|
anchors.fill: parent
|
|
|
|
contentHeight: 800
|
2020-02-12 16:21:13 +01:00
|
|
|
|
2020-02-09 01:03:52 +01:00
|
|
|
ScrollBar.vertical: ScrollBar {
|
2020-02-12 16:21:13 +01:00
|
|
|
id: fscrollbar
|
2020-02-09 01:03:52 +01:00
|
|
|
width: 10
|
|
|
|
policy: ScrollBar.AlwaysOn
|
|
|
|
}
|
|
|
|
|
|
|
|
TextArea {
|
|
|
|
id: intro
|
|
|
|
x: 1
|
|
|
|
y: 0
|
2020-02-11 12:55:26 +01:00
|
|
|
width: parent.width - fscrollbar.width
|
2020-02-09 01:03:52 +01:00
|
|
|
font.pointSize: 14
|
|
|
|
textFormat: Text.RichText
|
|
|
|
antialiasing: true
|
|
|
|
activeFocusOnPress: false
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
|
2020-02-12 16:21:13 +01:00
|
|
|
text: qsTr("<h3>%1</h3>
|
2020-02-19 17:16:51 +01:00
|
|
|
<p>These are example release notes.</p>"
|
|
|
|
).arg(Branding.string(Branding.VersionedName))
|
2020-02-09 01:03:52 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|