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