-
Notifications
You must be signed in to change notification settings - Fork 1
/
URL.qml
78 lines (55 loc) · 1.57 KB
/
URL.qml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import QtQuick 2.3
import QtQuick.Window 2.2
//import Ubuntu.Web 0.2
import "main.js" as Scripts
import "openseed.js" as OpenSeed
Item {
id:popup
property string number: "0"
property string list:""
property string service: ""
property string pagesource: ""
property string thesource:""
clip: true
states: [
State {
name:"Active"
PropertyChanges {
target: popup
visible:true
}
},
State {
name:"InActive"
PropertyChanges {
target: popup
visible:false
}
}
]
anchors.centerIn: parent
onStateChanged: if(popup.state == "Active") {OpenSeed.website_snap(mycard,page,index)}
/* WebView {
anchors.centerIn: parent
width:parent.width * 0.98
height:parent.height * 0.98
url: service
onUrlChanged:fullWeb.state = "available"
*/
Image {
visible:if(custompage == 0 & hasrss == 0) {true} else {false}
anchors.centerIn: parent
fillMode:Image.PreserveAspectCrop
width:backing.width * 0.98
height:backing.height * 0.98
source:thesource
MouseArea {
anchors.fill:parent
//onClicked: showurl = page,fullWeb.state = "show"
//,cardPage.header.hide()
onClicked:Qt.openUrlExternally(page);
/*onPressAndHold:showurl = page,fullWeb.state = "show"
,cardPage.header.hide() */
}
}
}