summaryrefslogtreecommitdiff
path: root/Link.qml
blob: 45f46be30ef83572788e647dc08d202460790fe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15

Rectangle {
	property string arg
	color: "#2a2a2a"
	ColumnLayout {
		anchors.centerIn: parent
		Image {
			Layout.alignment: Qt.AlignCenter
			source: "images/2be179c1-b901-4db5-b9ab-81327a450ee5.png"
		}
		Text {
			objectName: "link"
			signal activated(string arg)
			function push(view, arg) {
				stack.push(view + ".qml", {
					"arg": arg
				})
				pushed()
			}
			signal pushed()
			Layout.alignment: Qt.AlignCenter
			text: "<a href=\"https://darapsa.com/" + arg + "\">https://darapsa.com/" + arg + "</a>"
			linkColor: "#ffffff"
			onLinkActivated: Qt.openUrlExternally("https://darapsa.com/" + arg + "/All-Products")
		}
	}
}