status-desktop/ui/app/AppLayouts/Profile/Sections/HelpContainer.qml

39 lines
1008 B
QML
Raw Normal View History

2020-06-17 19:18:31 +00:00
import QtQuick 2.13
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.13
2020-05-27 21:28:25 +00:00
import "../../../../imports"
import "../../../../shared"
import "../../../../shared/xss.js" as XSS
2020-05-27 21:28:25 +00:00
Item {
id: helpContainer
width: 200
height: 200
Layout.fillHeight: true
Layout.fillWidth: true
StyledText {
2020-05-27 21:28:25 +00:00
id: element8
//% "Help menus: FAQ, Glossary, etc."
text: qsTrId("help-menus:-faq,-glossary,-etc.")
2020-05-27 21:28:25 +00:00
anchors.left: parent.left
anchors.leftMargin: 24
anchors.top: parent.top
anchors.topMargin: 24
font.weight: Font.Bold
font.pixelSize: 20
}
StyledText {
2020-05-27 21:28:25 +00:00
anchors.centerIn: parent
text: Utils.linkifyAndXSS(link)
2020-05-27 21:28:25 +00:00
onLinkActivated: Qt.openUrlExternally(link)
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.NoButton // we don't want to eat clicks on the Text
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
}
}
2020-06-17 19:18:31 +00:00
}