This repository has been archived on 2020-04-18. You can view files and clone it, but cannot push or open issues or pull requests.
FediPotato/gui/qml/DialogAbout.qml

69 lines
1.7 KiB
QML

import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Window 2.2
import QtQuick.Layouts 1.3
Window
{
id: win_about
title: qsTr("About FediPotato") + " " + QMLBridge.get_version()
flags: Qt.Dialog
modality: Qt.NonModal
minimumWidth: label_description.width * 2
minimumHeight: label_description.width
TabBar
{
id: tabbar_about
width: parent.width
TabButton
{
text: qsTr("About")
}
TabButton
{
text: qsTr("Authors")
}
}
StackLayout {
id: layout_about
anchors.top: tabbar_about.bottom
width: parent.width
currentIndex: tabbar_about.currentIndex
ColumnLayout
{
width: parent.width
Label
{
id: label_description
text: "<b>" + qsTr("Client for Fediverse servers.") + "</b>"
}
Label
{
id: label_license
Layout.fillWidth: true
wrapMode: Text.WordWrap
onLinkActivated: Qt.openUrlExternally(link)
text: qsTr("License AGPL-3.0-only: <a href='" +
"https://www.gnu.org/licenses/agpl-3.0.txt'>" +
"GNU Affero GPL version 3</a>.<br>" +
"This program comes with ABSOLUTELY NO WARRANTY. " +
"This is free software, and you are welcome to " +
"redistribute it under certain conditions.")
}
}
Label
{
id: label_authors
text: QMLBridge.get_authors()
}
}
}