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
|
|
|
|
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
|
|
|
}
|
|
|
|
Kirigami.Label {
|
|
|
|
id: logContent
|
|
|
|
width: parent.width
|
|
|
|
Layout.preferredWidth: parent.width
|
|
|
|
Layout.maximumWidth: parent.width
|
|
|
|
wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
|
|
|
|
text: manager.logText
|
|
|
|
}
|
|
|
|
Rectangle {
|
|
|
|
color: "transparent"
|
|
|
|
height: Kirigami.Units.gridUnit * 2
|
|
|
|
width: pageWidth
|
2015-08-19 07:17:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|