settings: added daemon console

This commit is contained in:
Jacob Brydolf 2016-11-07 14:59:00 +01:00 committed by Jaquee
parent b53ef00b36
commit 14a5bd5dcc
No known key found for this signature in database
GPG Key ID: 384E52B09F45DC39

View File

@ -308,17 +308,57 @@ Rectangle {
daemonManager.stop();
}
}
StandardButton {
visible: true
// enabled: appWindow.daemonRunning
id: daemonConsolePopupButton
width: 110
text: qsTr("Show concole") + translationManager.emptyString
shadowReleasedColor: "#FF4304"
shadowPressedColor: "#B32D00"
releasedColor: "#FF6C3C"
pressedColor: "#FF4304"
onClicked: {
daemonConsolePopup.open();
}
}
}
}
// Daemon console
StandardDialog {
id: daemonConsolePopup
height:800
width:800
cancelVisible: false
title: qsTr("Daemon console")
onAccepted: {
close();
}
}
// fires on every page load
function onPageCompleted() {
console.log("Settings page loaded");
initSettings();
}
// fires only once
Component.onCompleted: {
daemonManager.daemonConsoleUpdated.connect(onDaemonConsoleUpdated)
}
function onDaemonConsoleUpdated(message){
// Update daemon console
daemonConsolePopup.textArea.append(message)
}
}