QML UI: implement a message area to show information to the user

This is just a quick first stab to do this, but it at least allows us to
share some information with the user.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-07-12 17:39:13 -07:00
parent 16759715e6
commit 15de7f0b71
4 changed files with 49 additions and 3 deletions

View file

@ -8,6 +8,7 @@ import org.subsurfacedivelog.mobile 1.0
ApplicationWindow {
title: qsTr("Subsurface mobile")
property bool fullscreen: true
property alias messageText: message.text
visible: true
StackView {
@ -68,6 +69,20 @@ ApplicationWindow {
}
}
Rectangle {
id: messageArea
height: childrenRect.height
Layout.fillWidth: true
Text {
id: message
color: "#000000"
text: ""
styleColor: "#ff0000"
font.pointSize: 10
}
}
}
}
}