2017-04-27 20:30:36 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2015-08-19 10:17:52 +03: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 18:16:12 +02:00
|
|
|
import QtQuick.Controls 2.1
|
2015-08-19 10:17:52 +03:00
|
|
|
import org.subsurfacedivelog.mobile 1.0
|
2017-03-31 16:15:14 +02:00
|
|
|
import org.kde.kirigami 2.0 as Kirigami
|
2015-08-19 10:17:52 +03:00
|
|
|
|
2016-03-08 21:26:54 +01:00
|
|
|
Kirigami.ScrollablePage {
|
2015-08-19 10:17:52 +03:00
|
|
|
id: logWindow
|
2017-06-16 02:02:00 -07:00
|
|
|
width: parent.width - Kirigami.Units.gridUnit
|
2016-03-08 21:26:54 +01:00
|
|
|
anchors.margins: Kirigami.Units.gridUnit / 2
|
2015-08-20 11:44:01 +03:00
|
|
|
objectName: "Log"
|
2016-05-03 21:24:00 +02:00
|
|
|
title: qsTr("Application Log")
|
2016-01-06 04:44:26 +01:00
|
|
|
|
2017-06-16 02:02:00 -07:00
|
|
|
ListView {
|
|
|
|
anchors.fill: parent
|
|
|
|
model: logModel
|
|
|
|
currentIndex: -1
|
|
|
|
boundsBehavior: Flickable.StopAtBounds
|
|
|
|
maximumFlickVelocity: parent.height * 5
|
|
|
|
cacheBuffer: Math.max(5000, parent.height * 5)
|
|
|
|
focus: true
|
|
|
|
clip: true
|
|
|
|
header : Kirigami.Heading {
|
2016-05-03 21:24:00 +02:00
|
|
|
text: qsTr("Application Log")
|
2016-04-02 10:54:46 -05:00
|
|
|
}
|
2017-06-16 02:02:00 -07:00
|
|
|
delegate : Text {
|
2017-06-17 14:06:06 -07:00
|
|
|
width: logWindow.width
|
2017-06-16 02:02:00 -07:00
|
|
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
|
|
|
text : message
|
2015-08-19 10:17:52 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|