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
|
2015-12-03 23:55:08 +00:00
|
|
|
import org.kde.plasma.mobilecomponents 0.2 as MobileComponents
|
2015-08-19 07:17:52 +00:00
|
|
|
|
2015-12-03 23:55:08 +00:00
|
|
|
MobileComponents.Page {
|
2015-08-19 07:17:52 +00:00
|
|
|
id: logWindow
|
2015-12-08 03:21:31 +00:00
|
|
|
width: parent.width - MobileComponents.Units.gridUnit
|
|
|
|
anchors.margins: MobileComponents.Units.gridUnit / 2
|
2015-08-20 08:44:01 +00:00
|
|
|
objectName: "Log"
|
2016-01-06 03:44:26 +00:00
|
|
|
|
2016-02-12 12:51:03 +00:00
|
|
|
contextualActions: [
|
|
|
|
Action {
|
|
|
|
text: "Close Log"
|
|
|
|
iconName: "dialog-cancel"
|
|
|
|
onTriggered: {
|
|
|
|
stackView.pop()
|
|
|
|
contextDrawer.close()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
2015-12-03 23:55:08 +00:00
|
|
|
ScrollView {
|
|
|
|
anchors.fill: parent
|
|
|
|
Flickable {
|
|
|
|
id: logFlick
|
|
|
|
anchors.fill: parent
|
|
|
|
contentHeight: logContent.height
|
|
|
|
clip: true
|
2015-12-07 22:26:30 +00:00
|
|
|
ColumnLayout {
|
2015-12-07 23:11:32 +00:00
|
|
|
width: logFlick.width
|
2015-12-07 22:26:30 +00:00
|
|
|
spacing: MobileComponents.Units.smallSpacing
|
|
|
|
MobileComponents.Heading {
|
|
|
|
text: "Application Log"
|
|
|
|
}
|
|
|
|
MobileComponents.Label {
|
|
|
|
id: logContent
|
2015-12-07 23:11:32 +00:00
|
|
|
Layout.preferredWidth: parent.width
|
|
|
|
Layout.maximumWidth: parent.width
|
2015-12-07 22:26:30 +00:00
|
|
|
wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
|
|
|
|
text: manager.logText
|
2015-12-03 23:55:08 +00:00
|
|
|
}
|
2015-08-20 09:08:59 +00:00
|
|
|
}
|
2015-08-19 07:17:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|