2 import QtQuick.Layouts 1.1
3 import QtQuick.Controls 2.0
9 property string contents: ''
10 property string uninstallApp: ''
26 anchors.centerIn: parent
29 GradientStop { position: 0.0; color: "#12262E" }
30 GradientStop { position: 1.0; color: "#18899B" }
35 topMargin: 10; bottomMargin:10
36 leftMargin: 20; rightMargin: 20
51 text: 'Uninstall Dialog'
57 elide: Text.ElideRight
58 horizontalAlignment: Label.AlignHCenter
59 verticalAlignment: Label.AlignVCenter
60 Layout.preferredWidth: 960
61 Layout.preferredHeight: 40
65 source: './images/DividingLine.svg'
66 anchors.left: title.left
67 anchors.top: title.bottom
74 left: parent.left; leftMargin: 20
75 right: parent.right; rightMargin: 20
77 Layout.preferredWidth: 920
78 Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
82 source: './images/uninstall.png'
83 Layout.maximumHeight: 120
84 Layout.maximumWidth: 120
91 elide: Text.ElideRight
92 horizontalAlignment: Label.AlignLeft
93 verticalAlignment: Label.AlignVCenter
94 Layout.preferredWidth: 780
95 Layout.preferredHeight: 160
103 horizontalCenter: parent.horizontalCenter
105 Layout.preferredWidth: parent.width*0.75
106 Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
112 btn1.highlighted = false
114 pid = homescreenHandler.uninstallApplication(uninstallApp)
116 console.warn("app cannot be uninstaled!")
120 btn1.highlighted = true
123 btn1.highlighted = false
125 Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
132 btn2.highlighted = false
136 btn2.highlighted = true
139 btn2.highlighted = false
141 Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
151 bottom: parent.bottom