2015-08-19 07:17:52 +00:00
|
|
|
import QtQuick 2.3
|
|
|
|
import QtQuick.Controls 1.2
|
|
|
|
import QtQuick.Controls.Styles 1.2
|
|
|
|
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
|
2016-03-08 20:26:54 +00:00
|
|
|
import org.kde.kirigami 1.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
|
|
|
width: parent.width - Kirigami.Units.gridUnit
|
|
|
|
anchors.margins: Kirigami.Units.gridUnit / 2
|
2015-08-20 08:44:01 +00:00
|
|
|
objectName: "Log"
|
2016-03-08 20:26:54 +00:00
|
|
|
title: "Application Log"
|
2016-01-06 03:44:26 +00:00
|
|
|
|
2016-02-13 06:26:47 +00:00
|
|
|
/* this can be done by hitting the back key
|
2016-02-12 12:51:03 +00:00
|
|
|
contextualActions: [
|
|
|
|
Action {
|
|
|
|
text: "Close Log"
|
|
|
|
iconName: "dialog-cancel"
|
|
|
|
onTriggered: {
|
|
|
|
stackView.pop()
|
|
|
|
contextDrawer.close()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2016-02-13 06:26:47 +00:00
|
|
|
*/
|
2016-03-08 20:26:54 +00:00
|
|
|
|
|
|
|
Flickable {
|
|
|
|
id: logFlick
|
2015-12-03 23:55:08 +00:00
|
|
|
anchors.fill: parent
|
2016-03-08 20:26:54 +00:00
|
|
|
contentHeight: logContent.height
|
|
|
|
clip: true
|
|
|
|
ColumnLayout {
|
|
|
|
width: logFlick.width
|
|
|
|
spacing: Kirigami.Units.smallSpacing
|
|
|
|
Kirigami.Heading {
|
|
|
|
text: "Application Log"
|
|
|
|
}
|
|
|
|
Kirigami.Label {
|
|
|
|
id: logContent
|
|
|
|
Layout.preferredWidth: parent.width
|
|
|
|
Layout.maximumWidth: parent.width
|
|
|
|
wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
|
|
|
|
text: manager.logText
|
2015-08-20 09:08:59 +00:00
|
|
|
}
|
2015-08-19 07:17:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|