@@ -3,7 +3,7 @@ import QtQuick.Controls 1.0;
3
3
import QtQuick.Controls.Styles 1.0
4
4
import QtQuick.Layouts 1.0 ;
5
5
import QtWebEngine 1.0
6
- // import QtWebEngine.experimental 1.0
6
+ import QtWebEngine.experimental 1.0
7
7
import QtQuick.Window 2.0 ;
8
8
9
9
@@ -21,8 +21,6 @@ Rectangle {
21
21
property alias windowTitle: webview .title
22
22
property alias webView: webview
23
23
24
-
25
-
26
24
property var cleanPath: false
27
25
property var open : function (url ) {
28
26
if (! window .cleanPath ) {
@@ -66,9 +64,6 @@ Rectangle {
66
64
}
67
65
}
68
66
69
- Component .onCompleted : {
70
- }
71
-
72
67
Item {
73
68
objectName: " root"
74
69
id: root
@@ -85,7 +80,7 @@ Rectangle {
85
80
property var domain: " ethereum-dapp-catalog.meteor.com"
86
81
url: protocol + domain
87
82
88
- // experimental.settings.javascriptCanAccessClipboard: true
83
+ experimental .settings .javascriptCanAccessClipboard : true
89
84
90
85
91
86
onJavaScriptConsoleMessage: {
@@ -112,11 +107,11 @@ Rectangle {
112
107
113
108
}
114
109
}
115
- // onLoadingChanged: {
116
- // if (loadRequest.status == WebEngineView.LoadSucceededStatus) {
117
- // webview.runJavaScript(eth.readFile("mist.js"));
118
- // }
119
- // }
110
+ onLoadingChanged: {
111
+ if (loadRequest .status == WebEngineView .LoadSucceededStatus ) {
112
+ webview .runJavaScript (eth .readFile (" mist.js" ));
113
+ }
114
+ }
120
115
}
121
116
122
117
0 commit comments