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
|
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
|
|
|
|
2016-04-02 15:54:46 +00:00
|
|
|
property int pageWidth: subsurfaceTheme.columnWidth - Kirigami.Units.smallSpacing
|
2016-03-08 20:26:54 +00:00
|
|
|
|
2016-04-02 15:54:46 +00:00
|
|
|
ColumnLayout {
|
2016-04-07 19:12:01 +00:00
|
|
|
width: logWindow.width - logWindow.leftPadding - logWindow.rightPadding - 2 * Kirigami.Units.smallSpacing
|
2016-04-02 15:54:46 +00:00
|
|
|
spacing: Kirigami.Units.smallSpacing
|
|
|
|
Kirigami.Heading {
|
2016-05-03 19:24:00 +00:00
|
|
|
text: qsTr("Application Log")
|
2016-04-02 15:54:46 +00:00
|
|
|
}
|
2017-06-05 16:16:12 +00:00
|
|
|
|
|
|
|
ListView {
|
|
|
|
width: parent.width;
|
|
|
|
height: 500
|
|
|
|
model: logModel
|
|
|
|
delegate : Text {
|
|
|
|
text : message
|
|
|
|
}
|
2016-04-02 15:54:46 +00:00
|
|
|
}
|
2017-06-05 16:16:12 +00:00
|
|
|
|
2016-04-02 15:54:46 +00:00
|
|
|
Rectangle {
|
|
|
|
color: "transparent"
|
|
|
|
height: Kirigami.Units.gridUnit * 2
|
|
|
|
width: pageWidth
|
2015-08-19 07:17:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|