telephant/qml/AboutDialog.qml
Christian Muehlhaeuser 8e4160cc0d
Updated about dialog
2019-05-10 02:55:48 +02:00

66 lines
2.2 KiB
QML

import QtQuick 2.4
import QtQuick.Controls 2.1
import QtQuick.Controls.Material 2.1
import QtQuick.Layouts 1.3
Popup {
modal: true
focus: true
contentHeight: aboutColumn.height
Column {
id: aboutColumn
spacing: 20
Label {
text: qsTr("About")
font.bold: true
}
Label {
width: aboutDialog.availableWidth
text: "Telephant! by <a style=\"text-decoration: none;\" href=\"https://twitter.com/mueslix\">@mueslix</a>"
textFormat: Text.RichText
wrapMode: Label.Wrap
font.pointSize: 14
onLinkActivated: Qt.openUrlExternally(link)
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.NoButton // we don't want to eat clicks on the Label
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
}
}
Label {
width: aboutDialog.availableWidth
text: "Version 0.1"
textFormat: Text.RichText
wrapMode: Label.Wrap
font.pointSize: 14
onLinkActivated: Qt.openUrlExternally(link)
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.NoButton // we don't want to eat clicks on the Label
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
}
}
Label {
width: aboutDialog.availableWidth
text: qsTr("Telephant! is a light-weight but modern social media client")
textFormat: Text.RichText
wrapMode: Label.Wrap
font.pointSize: 13
onLinkActivated: Qt.openUrlExternally(link)
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.NoButton // we don't want to eat clicks on the Label
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
}
}
}
}