From cf999c46220829a5b240e09f11e29748fe94ec35 Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 26 Sep 2014 13:34:06 +0200 Subject: [PATCH] Cleaned up --- mist/assets/debugger/debugger.qml | 2 +- mist/assets/ext/html_messaging.js | 1 - mist/assets/qml/views/info.qml | 63 +++++++++---------------------- 3 files changed, 18 insertions(+), 48 deletions(-) diff --git a/mist/assets/debugger/debugger.qml b/mist/assets/debugger/debugger.qml index 8d54b5b5d..b30d20e6b 100644 --- a/mist/assets/debugger/debugger.qml +++ b/mist/assets/debugger/debugger.qml @@ -357,7 +357,7 @@ ApplicationWindow { anchors.right: parent.right model: ListModel { ListElement { text: "Snippets" ; value: "" } - ListElement { text: "Call Contract" ; value: "var[2] in;\nvar ret;\n\nin[0] = \"arg1\"\nin[1] = 0xdeadbeef\n\nvar success = call(0x0c542ddea93dae0c2fcb2cf175f03ad80d6be9a0, 0, 7000, in, ret)\n\nreturn ret" } + ListElement { text: "Call Contract" ; value: "var[2] in = { \"arg1\", 0xdeadbeef };\nvar ret;\n\nvar success = call(0x0c542ddea93dae0c2fcb2cf175f03ad80d6be9a0, 0, 7000, in, ret)\n\nreturn ret" } } onCurrentIndexChanged: { if(currentIndex != 0) { diff --git a/mist/assets/ext/html_messaging.js b/mist/assets/ext/html_messaging.js index 0bedba997..1f9418148 100644 --- a/mist/assets/ext/html_messaging.js +++ b/mist/assets/ext/html_messaging.js @@ -459,7 +459,6 @@ g_seed++; - console.log(data) navigator.qt.postMessage(JSON.stringify(data)); } diff --git a/mist/assets/qml/views/info.qml b/mist/assets/qml/views/info.qml index 8a1d4d84a..158e2c960 100644 --- a/mist/assets/qml/views/info.qml +++ b/mist/assets/qml/views/info.qml @@ -121,6 +121,23 @@ Rectangle { } } + /* + TableView { + id: logView + headerVisible: false + anchors { + right: logLevelSlider.left + left: parent.left + bottom: parent.bottom + top: parent.top + } + + TableViewColumn{ role: "description" ; title: "log" } + + model: logModel + } + */ + Slider { id: logLevelSlider value: gui.getLogLevelInt() @@ -149,52 +166,6 @@ Rectangle { id: logModel } - /* - RowLayout { - id: logLayout - width: parent.width - height: 200 - anchors.bottom: parent.bottom - TableView { - id: logView - headerVisible: false - anchors { - right: logLevelSlider.left - left: parent.left - bottom: parent.bottom - top: parent.top - } - - TableViewColumn{ role: "description" ; title: "log" } - - model: logModel - } - - Slider { - id: logLevelSlider - value: gui.getLogLevelInt() - anchors { - right: parent.right - top: parent.top - bottom: parent.bottom - - rightMargin: 5 - leftMargin: 5 - topMargin: 5 - bottomMargin: 5 - } - - orientation: Qt.Vertical - maximumValue: 5 - stepSize: 1 - - onValueChanged: { - gui.setLogLevel(value) - } - } - } - */ - function addDebugMessage(message){ debuggerLog.append({value: message}) }