2017-04-27 18:30:36 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2015-08-19 07:17:52 +00:00
|
|
|
import QtQuick 2.3
|
|
|
|
import QtQuick.Window 2.2
|
|
|
|
import QtQuick.Dialogs 1.2
|
|
|
|
import QtQuick.Layouts 1.1
|
|
|
|
import QtQuick.Window 2.2
|
2017-06-05 16:16:12 +00:00
|
|
|
import QtQuick.Controls 2.1
|
2015-08-19 07:17:52 +00:00
|
|
|
import org.subsurfacedivelog.mobile 1.0
|
2017-03-31 14:15:14 +00:00
|
|
|
import org.kde.kirigami 2.0 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
|
2017-06-16 09:02:00 +00:00
|
|
|
width: parent.width - Kirigami.Units.gridUnit
|
2016-03-08 20:26:54 +00:00
|
|
|
anchors.margins: Kirigami.Units.gridUnit / 2
|
2015-08-20 08:44:01 +00:00
|
|
|
objectName: "Log"
|
2016-05-03 19:24:00 +00:00
|
|
|
title: qsTr("Application Log")
|
2016-01-06 03:44:26 +00:00
|
|
|
|
2017-06-16 09:02:00 +00:00
|
|
|
ListView {
|
|
|
|
anchors.fill: parent
|
2017-07-06 13:33:15 +00:00
|
|
|
anchors.topMargin: Kirigami.Units.gridUnit * 2
|
2017-06-16 09:02:00 +00:00
|
|
|
model: logModel
|
|
|
|
currentIndex: -1
|
|
|
|
boundsBehavior: Flickable.StopAtBounds
|
|
|
|
maximumFlickVelocity: parent.height * 5
|
|
|
|
cacheBuffer: Math.max(5000, parent.height * 5)
|
|
|
|
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
|
2017-06-21 22:47:29 +00:00
|
|
|
color: Kirigami.Theme.textColor
|
2017-06-16 09:02:00 +00:00
|
|
|
text : message
|
2015-08-19 07:17:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|