summaryrefslogtreecommitdiffstats
path: root/qt-mobile/Log.qml
diff options
context:
space:
mode:
authorGravatar Grace Karanja <gracie.karanja89@gmail.com>2015-08-20 12:08:59 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-31 15:49:09 -0700
commit56771159a83d7791994bbf7f3cfed8c1459e2193 (patch)
treef53612c6b4e589d39699965b7287294e6f98ff6a /qt-mobile/Log.qml
parentcd28082c395002e027f682500670e79b934b9cf8 (diff)
downloadsubsurface-56771159a83d7791994bbf7f3cfed8c1459e2193.tar.gz
QML UI: Show log correctly
Correctly show the log messages. The log window will display all messages emitted by the QML Manager class. Signed-off-by: Grace Karanja <gracie.karanja89@gmail.com>
Diffstat (limited to 'qt-mobile/Log.qml')
-rw-r--r--qt-mobile/Log.qml17
1 files changed, 13 insertions, 4 deletions
diff --git a/qt-mobile/Log.qml b/qt-mobile/Log.qml
index 0bd812f3f..8e660f2c7 100644
--- a/qt-mobile/Log.qml
+++ b/qt-mobile/Log.qml
@@ -10,19 +10,28 @@ import org.subsurfacedivelog.mobile 1.0
Item {
id: logWindow
width: parent.width
+ height: parent.height
objectName: "Log"
ColumnLayout {
width: parent.width
+ height: parent.height
spacing: 8
TopBar {
- height: childrenRect.height
+ id: topBar
+ anchors.top: parent.top
}
- TextEdit {
- anchors.fill: height
- text: manager.logText
+ Rectangle {
+ anchors.top: topBar.bottom
+ Layout.fillHeight: true
+ Layout.fillWidth: true
+ Text {
+ anchors.fill: parent
+ wrapMode: Text.WrapAnywhere
+ text: manager.logText
+ }
}
}
}