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
|
|
|
|
width: parent.width
|
2015-08-20 11:44:01 +03:00
|
|
|
objectName: "Log"
|
2015-12-03 15:55:08 -08:00
|
|
|
flickable: logFlick
|
|
|
|
ScrollView {
|
|
|
|
anchors.fill: parent
|
|
|
|
Flickable {
|
|
|
|
id: logFlick
|
|
|
|
anchors.fill: parent
|
|
|
|
contentHeight: logContent.height
|
|
|
|
clip: true
|
|
|
|
Item {
|
|
|
|
id: logContent
|
|
|
|
width: logFlick.width
|
|
|
|
height: childrenRect.height + MobileComponents.Units.smallSpacing * 2
|
2015-08-19 10:17:52 +03:00
|
|
|
|
2015-12-03 15:55:08 -08:00
|
|
|
ColumnLayout {
|
|
|
|
anchors {
|
|
|
|
left: parent.left
|
|
|
|
right: parent.right
|
|
|
|
top: parent.top
|
|
|
|
margins: MobileComponents.Units.smallSpacing
|
|
|
|
}
|
|
|
|
spacing: MobileComponents.Units.smallSpacing
|
2015-08-19 10:17:52 +03:00
|
|
|
|
2015-12-03 15:55:08 -08:00
|
|
|
Text {
|
2015-12-04 19:10:34 -08:00
|
|
|
width: logWindow.width
|
|
|
|
wrapMode: Text.Wrap
|
2015-12-03 15:55:08 -08:00
|
|
|
text: manager.logText
|
|
|
|
}
|
|
|
|
Item {
|
|
|
|
height: MobileComponents.Units.gridUnit * 3
|
|
|
|
width: height
|
|
|
|
}
|
|
|
|
}
|
2015-08-20 12:08:59 +03:00
|
|
|
}
|
2015-08-19 10:17:52 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|