Add basic debug logger.
This commit is contained in:
@@ -7,6 +7,7 @@ import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
|
||||
import clide.module 1.0
|
||||
import Logger 1.0
|
||||
|
||||
SplitView {
|
||||
id: root
|
||||
@@ -78,6 +79,9 @@ SplitView {
|
||||
text: parent.index + 1
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
width: parent.width - indicator.width
|
||||
background: Rectangle {
|
||||
color: RustColors.terminal_background
|
||||
}
|
||||
}
|
||||
// Draw edge along the right side of the line number.
|
||||
Rectangle {
|
||||
@@ -149,20 +153,8 @@ SplitView {
|
||||
}
|
||||
}
|
||||
}
|
||||
TextArea {
|
||||
ClideLogger {
|
||||
id: areaConsole
|
||||
|
||||
height: 100
|
||||
width: parent.width
|
||||
placeholderText: qsTr("shaun@pc:~/Code/clide$ ")
|
||||
placeholderTextColor: "white"
|
||||
readOnly: true
|
||||
wrapMode: TextArea.Wrap
|
||||
background: Rectangle {
|
||||
color: RustColors.terminal_background
|
||||
implicitHeight: 100
|
||||
// border.color: control.enabled ? RustColors.active : RustColors.inactive
|
||||
}
|
||||
}
|
||||
|
||||
// We use an inline component to customize the horizontal and vertical
|
||||
@@ -208,4 +200,11 @@ SplitView {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Component.onCompleted: {
|
||||
// Show logging is working.
|
||||
Logger.debug("Debug console ready")
|
||||
Logger.warn("Warnings show up too")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user