diff options
author | Maran <maran.hidskes@gmail.com> | 2014-06-23 22:25:57 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-06-23 22:25:57 +0800 |
commit | f6aabb7a90903a681eca44976301620756124137 (patch) | |
tree | 0acabc8ce58d13ffa4939e54b36f6a3e45308772 /ethereal/assets/qml/wallet.qml | |
parent | 2408e38218d81c567bdaa4671a542a20c55490b9 (diff) | |
download | go-tangerine-f6aabb7a90903a681eca44976301620756124137.tar go-tangerine-f6aabb7a90903a681eca44976301620756124137.tar.gz go-tangerine-f6aabb7a90903a681eca44976301620756124137.tar.bz2 go-tangerine-f6aabb7a90903a681eca44976301620756124137.tar.lz go-tangerine-f6aabb7a90903a681eca44976301620756124137.tar.xz go-tangerine-f6aabb7a90903a681eca44976301620756124137.tar.zst go-tangerine-f6aabb7a90903a681eca44976301620756124137.zip |
Implements QML Apps. Implements #47
You are welcome Stephan.
Diffstat (limited to 'ethereal/assets/qml/wallet.qml')
-rw-r--r-- | ethereal/assets/qml/wallet.qml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ethereal/assets/qml/wallet.qml b/ethereal/assets/qml/wallet.qml index a7c03f6d1..454d0f3f0 100644 --- a/ethereal/assets/qml/wallet.qml +++ b/ethereal/assets/qml/wallet.qml @@ -372,7 +372,15 @@ ApplicationWindow { onAccepted: { //ui.open(openAppDialog.fileUrl.toString()) //ui.openHtml(Qt.resolvedUrl(ui.assetPath("test.html"))) - ui.openHtml(openAppDialog.fileUrl.toString()) + var path = openAppDialog.fileUrl.toString() + console.log(path) + var ext = path.split('.').pop() + console.log(ext) + if(ext == "html" || ext == "htm") { + ui.openHtml(path) + }else if(ext == "qml"){ + ui.openQml(path) + } } } |