Commit 36c30bff authored by Nate Weibley's avatar Nate Weibley

Clean up AppMessages QML

parent a552bc72
......@@ -31,14 +31,16 @@ import QGroundControl.Controls 1.0
import QGroundControl.Controllers 1.0
import QGroundControl.ScreenTools 1.0
QGCView {
viewPanel: panel
Rectangle {
id: logwindow
anchors.fill: parent
anchors.margins: ScreenTools.defaultFontPixelWidth
color: qgcPal.window
property bool loaded: false
QGCPalette { id: qgcPal }
Connections {
target: debugMessageModel
......@@ -70,24 +72,16 @@ QGCView {
}
}
QGCViewPanel {
id: panel
anchors.fill: parent
Rectangle {
anchors.fill: parent
color: qgcPal.window
}
ListView {
Component.onCompleted: {
loaded = true
}
anchors.margins: ScreenTools.defaultFontPixelHeight
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: followTail.top
anchors.bottomMargin: ScreenTools.defaultFontPixelWidth
clip: true
id: listview
model: debugMessageModel
delegate: delegateItem
......@@ -116,7 +110,6 @@ QGCView {
id: writeButton
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.margins: ScreenTools.defaultFontPixelWidth
onClicked: writeDialog.visible = true
text: "Save App Log"
}
......@@ -133,7 +126,6 @@ QGCView {
id: followTail
anchors.bottom: parent.bottom
anchors.right: parent.right
anchors.margins: ScreenTools.defaultFontPixelWidth
text: "Show Latest"
checkable: true
checked: true
......@@ -144,5 +136,4 @@ QGCView {
}
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment