[notesqml] Rename example file to save translators
This commit is contained in:
parent
51ad7df31c
commit
2d754dac6d
@ -1,6 +1,7 @@
|
|||||||
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
||||||
*
|
*
|
||||||
* Copyright 2020, Anke Boersma <demm@kaosx.us>
|
* Copyright 2020, Anke Boersma <demm@kaosx.us>
|
||||||
|
* Copyright 2020, Adriaan de Groot <groot@kde.org>
|
||||||
*
|
*
|
||||||
* Calamares is free software: you can redistribute it and/or modify
|
* Calamares is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -16,6 +17,14 @@
|
|||||||
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
|
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* Some Calamares internals are available to all QML modules.
|
||||||
|
* They live in the calamares.ui namespace (filled programmatically
|
||||||
|
* by Calamares). One of the internals that is exposed is the
|
||||||
|
* Branding object, which can be used to retrieve strings and paths
|
||||||
|
* and colors.
|
||||||
|
*/
|
||||||
|
import calamares.ui 1.0
|
||||||
|
|
||||||
import QtQuick 2.7
|
import QtQuick 2.7
|
||||||
import QtQuick.Controls 2.2
|
import QtQuick.Controls 2.2
|
||||||
import QtQuick.Window 2.2
|
import QtQuick.Window 2.2
|
||||||
@ -30,8 +39,9 @@ Item {
|
|||||||
id: flick
|
id: flick
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
contentHeight: 800
|
contentHeight: 800
|
||||||
|
|
||||||
ScrollBar.vertical: ScrollBar {
|
ScrollBar.vertical: ScrollBar {
|
||||||
|
id: fscrollbar
|
||||||
width: 10
|
width: 10
|
||||||
policy: ScrollBar.AlwaysOn
|
policy: ScrollBar.AlwaysOn
|
||||||
}
|
}
|
||||||
@ -40,33 +50,34 @@ Item {
|
|||||||
id: intro
|
id: intro
|
||||||
x: 1
|
x: 1
|
||||||
y: 0
|
y: 0
|
||||||
width: 720
|
width: parent.width - fscrollbar.width
|
||||||
font.pointSize: 14
|
font.pointSize: 14
|
||||||
textFormat: Text.RichText
|
textFormat: Text.RichText
|
||||||
antialiasing: true
|
antialiasing: true
|
||||||
activeFocusOnPress: false
|
activeFocusOnPress: false
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
|
|
||||||
text: qsTr("<h3>Generic GNU/Linux 2017.8 LTS <quote>Soapy Sousaphone</quote></h3>
|
text: qsTr("<h3>%1</h3>
|
||||||
<p>This an example QML file, showing options in RichText with Flickable content.</p>
|
<p>This an example QML file, showing options in RichText with Flickable content.</p>
|
||||||
|
|
||||||
<p>QML with RichText can use HTML tags, Flickable content is useful for touchscreens.</p>
|
<p>QML with RichText can use HTML tags, Flickable content is useful for touchscreens.</p>
|
||||||
|
|
||||||
<p><b>This is bold text</b></p>
|
<p><b>This is bold text</b></p>
|
||||||
<p><i>This is italic text</i></p>
|
<p><i>This is italic text</i></p>
|
||||||
<p><u>This is underlined text</u></p>
|
<p><u>This is underlined text</u></p>
|
||||||
<p><strike>This is strikethrough</strike></p>
|
<p><center>This text will be center-aligned.</center></p>
|
||||||
|
<p><s>This is strikethrough</s></p>
|
||||||
|
|
||||||
<p>Code example:
|
<p>Code example:
|
||||||
<code>ls -l /home</code></p>
|
<code>ls -l /home</code></p>
|
||||||
|
|
||||||
<p><b>Lists:</b></p>
|
<p><b>Lists:</b></p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Intel CPU systems</li>
|
<li>Intel CPU systems</li>
|
||||||
<li>AMD CPU systems</li>
|
<li>AMD CPU systems</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>The vertical scrollbar is adjustable, current width set to 10.</p>")
|
<p>The vertical scrollbar is adjustable, current width set to 10.</p>").arg(Branding.string(Branding.VersionedName))
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user