This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2019-03-25 15:16:29 +01:00

34 lines
838 B
QML

import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import Nymea 1.0
import "../components"
Page {
header: GuhHeader {
text: qsTr("App log")
backButtonVisible: true
onBackPressed: pageStack.pop()
HeaderButton {
imageSource: "../images/edit-copy.svg"
onClicked: AppLogController.toClipboard()
}
}
ListView {
anchors.fill: parent
ScrollBar.vertical: ScrollBar {}
model: AppLogController
delegate: Text {
width: parent.width
maximumLineCount: 2
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
text: model.text
color: model.type === AppLogController.TypeWarning ? "red" : app.foregroundColor
font.pixelSize: app.smallFont
}
}
}