2023-04-09 05:35:35 +00:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2023-01-12 14:53:22 +00:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
ListModel {
|
|
|
|
id: aboutModel
|
|
|
|
ListElement { dest: "freekill" }
|
|
|
|
ListElement { dest: "qt" }
|
|
|
|
ListElement { dest: "lua" }
|
|
|
|
ListElement { dest: "gplv3" }
|
|
|
|
ListElement { dest: "sqlite" }
|
|
|
|
ListElement { dest: "ossl" }
|
2023-02-15 11:54:35 +00:00
|
|
|
ListElement { dest: "git2" }
|
2023-01-12 14:53:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
SwipeView {
|
|
|
|
id: swipe
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillHeight: true
|
|
|
|
currentIndex: indicator.currentIndex
|
|
|
|
Repeater {
|
|
|
|
model: aboutModel
|
|
|
|
Item {
|
|
|
|
Rectangle {
|
|
|
|
anchors.centerIn: parent
|
2023-03-20 06:53:56 +00:00
|
|
|
color: "#88EEEEEE"
|
2023-01-12 14:53:22 +00:00
|
|
|
radius: 2
|
|
|
|
width: root.width * 0.8
|
|
|
|
height: root.height * 0.8
|
|
|
|
|
|
|
|
Image {
|
|
|
|
id: logo
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 8
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
source: AppPath + "/image/logo/" + dest
|
|
|
|
width: parent.width * 0.3
|
|
|
|
fillMode: Image.PreserveAspectFit
|
|
|
|
}
|
|
|
|
|
|
|
|
Text {
|
|
|
|
anchors.left: logo.right
|
|
|
|
anchors.leftMargin: 16
|
|
|
|
width: parent.width * 0.65
|
|
|
|
text: Backend.translate("about_" + dest + "_description")
|
|
|
|
wrapMode: Text.WordWrap
|
2023-03-20 06:53:56 +00:00
|
|
|
textFormat: Text.MarkdownText
|
2023-01-12 14:53:22 +00:00
|
|
|
font.pixelSize: 18
|
2023-05-26 12:53:26 +00:00
|
|
|
onLinkActivated: Qt.openUrlExternally(link);
|
2023-01-12 14:53:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
PageIndicator {
|
|
|
|
id: indicator
|
|
|
|
|
|
|
|
count: swipe.count
|
|
|
|
currentIndex: swipe.currentIndex
|
|
|
|
interactive: true
|
|
|
|
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Button {
|
|
|
|
text: Backend.translate("Quit")
|
|
|
|
anchors.right: parent.right
|
|
|
|
onClicked: {
|
|
|
|
swipe.opacity = 0;
|
|
|
|
mainStack.pop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|