aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/qml/webapp.qml
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-06-11 21:55:47 +0800
committerMaran <maran.hidskes@gmail.com>2014-06-11 21:55:47 +0800
commit1d300bbc108f9d404d2eb5cbc8990042c0129f04 (patch)
tree0b7a995ce2c5b439dae03f1e264823f2404e794a /ethereal/assets/qml/webapp.qml
parente36badd744bc79c652deb3d45da1438982ec622a (diff)
downloaddexon-1d300bbc108f9d404d2eb5cbc8990042c0129f04.tar
dexon-1d300bbc108f9d404d2eb5cbc8990042c0129f04.tar.gz
dexon-1d300bbc108f9d404d2eb5cbc8990042c0129f04.tar.bz2
dexon-1d300bbc108f9d404d2eb5cbc8990042c0129f04.tar.lz
dexon-1d300bbc108f9d404d2eb5cbc8990042c0129f04.tar.xz
dexon-1d300bbc108f9d404d2eb5cbc8990042c0129f04.tar.zst
dexon-1d300bbc108f9d404d2eb5cbc8990042c0129f04.zip
Toggle inspector / reload using magic rectangle
Diffstat (limited to 'ethereal/assets/qml/webapp.qml')
-rw-r--r--ethereal/assets/qml/webapp.qml26
1 files changed, 25 insertions, 1 deletions
diff --git a/ethereal/assets/qml/webapp.qml b/ethereal/assets/qml/webapp.qml
index ec236a18c..4a5a1293a 100644
--- a/ethereal/assets/qml/webapp.qml
+++ b/ethereal/assets/qml/webapp.qml
@@ -170,6 +170,30 @@ ApplicationWindow {
postEvent(ev, [storageObject.address, storageObject.value])
}
}
+ Rectangle {
+ id: toggleInspector
+ color: "#bcbcbc"
+ visible: true
+ height: 12
+ width: 12
+ anchors {
+ right: root.right
+ }
+ MouseArea {
+ onClicked: {
+ if(inspector.visible == true){
+ inspector.visible = false
+ }else{
+ inspector.visible = true
+ }
+ }
+ onDoubleClicked: {
+ console.log('refreshing')
+ webView.reload()
+ }
+ anchors.fill: parent
+ }
+ }
Rectangle {
id: sizeGrip
@@ -193,7 +217,7 @@ ApplicationWindow {
WebView {
id: inspector
- visible: true
+ visible: false
url: webview.experimental.remoteInspectorUrl
anchors {
left: root.left