mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-13 03:26:38 +00:00
Toggle inspector / reload using magic rectangle
This commit is contained in:
parent
e36badd744
commit
1d300bbc10
1 changed files with 25 additions and 1 deletions
|
|
@ -170,6 +170,30 @@ ApplicationWindow {
|
||||||
postEvent(ev, [storageObject.address, storageObject.value])
|
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 {
|
Rectangle {
|
||||||
id: sizeGrip
|
id: sizeGrip
|
||||||
|
|
@ -193,7 +217,7 @@ ApplicationWindow {
|
||||||
|
|
||||||
WebView {
|
WebView {
|
||||||
id: inspector
|
id: inspector
|
||||||
visible: true
|
visible: false
|
||||||
url: webview.experimental.remoteInspectorUrl
|
url: webview.experimental.remoteInspectorUrl
|
||||||
anchors {
|
anchors {
|
||||||
left: root.left
|
left: root.left
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue