Adding log messages to debug panel

This commit is contained in:
Maran
2014-04-14 17:08:15 -04:00
parent 28a48f1d9a
commit 91c75c9305
2 changed files with 18 additions and 0 deletions

View File

@@ -412,6 +412,17 @@ ApplicationWindow {
model: memModel
}
SplitView {
orientation: Qt.Vertical
anchors.fill: parent
TableView {
property var debuggerLog: ListModel {
id: debuggerLog
}
TableViewColumn{ role: "value"; title: "Debug messages" }
model: debuggerLog
}
}
TableView {
property var stackModel: ListModel {
id: stackModel
@@ -449,6 +460,10 @@ ApplicationWindow {
function setStack(stack) {
stackModel.append({value: stack})
}
function addDebugMessage(message){
console.log("WOOP:")
debuggerLog.append({value: message})
}
function clearStack() {
stackModel.clear()