2017-04-27 18:30:36 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2017-10-29 07:44:06 +00:00
|
|
|
import QtQuick 2.6
|
2015-08-19 07:17:52 +00:00
|
|
|
import QtQuick.Window 2.2
|
|
|
|
import QtQuick.Dialogs 1.2
|
2017-10-30 10:26:47 +00:00
|
|
|
import QtQuick.Layouts 1.2
|
2015-08-19 07:17:52 +00:00
|
|
|
import QtQuick.Window 2.2
|
2017-10-29 12:44:22 +00:00
|
|
|
import QtQuick.Controls 2.2
|
2015-08-19 07:17:52 +00:00
|
|
|
import org.subsurfacedivelog.mobile 1.0
|
2018-09-27 20:09:26 +00:00
|
|
|
import org.kde.kirigami 2.4 as Kirigami
|
2015-08-19 07:17:52 +00:00
|
|
|
|
2016-03-08 20:26:54 +00:00
|
|
|
Kirigami.ScrollablePage {
|
2015-08-19 07:17:52 +00:00
|
|
|
id: logWindow
|
2018-02-23 09:02:15 +00:00
|
|
|
width: subsurfaceTheme.columnWidth
|
2015-08-20 08:44:01 +00:00
|
|
|
objectName: "Log"
|
2016-05-03 19:24:00 +00:00
|
|
|
title: qsTr("Application Log")
|
2018-02-16 10:17:20 +00:00
|
|
|
background: Rectangle { color: subsurfaceTheme.backgroundColor }
|
2016-01-06 03:44:26 +00:00
|
|
|
|
2017-06-16 09:02:00 +00:00
|
|
|
ListView {
|
|
|
|
anchors.fill: parent
|
|
|
|
model: logModel
|
|
|
|
currentIndex: -1
|
|
|
|
boundsBehavior: Flickable.StopAtBounds
|
|
|
|
maximumFlickVelocity: parent.height * 5
|
2019-10-22 19:31:17 +00:00
|
|
|
cacheBuffer: 100 // cache up to 100 lines above / below what is shown for smoother scrolling
|
2017-06-16 09:02:00 +00:00
|
|
|
focus: true
|
|
|
|
clip: true
|
|
|
|
delegate : Text {
|
2017-06-17 21:06:06 +00:00
|
|
|
width: logWindow.width
|
2017-06-16 09:02:00 +00:00
|
|
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
2019-10-05 01:21:56 +00:00
|
|
|
color: subsurfaceTheme.textColor
|
2017-06-16 09:02:00 +00:00
|
|
|
text : message
|
2018-02-11 18:20:04 +00:00
|
|
|
font.pointSize: subsurfaceTheme.smallPointSize
|
2018-02-23 09:02:15 +00:00
|
|
|
leftPadding: Kirigami.Units.gridUnit / 2
|
2015-08-19 07:17:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|