diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-07-12 17:39:13 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-12 17:39:13 -0700 |
commit | 15de7f0b716b4e3c28fee4f4ccbac4788a8d84b1 (patch) | |
tree | 713cf409f07a3c616508a20a29d570daa790487f /qt-mobile/main.qml | |
parent | 16759715e62a48ca3bb77a668a27103a6b90ea20 (diff) | |
download | subsurface-15de7f0b716b4e3c28fee4f4ccbac4788a8d84b1.tar.gz |
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>
Diffstat (limited to 'qt-mobile/main.qml')
-rw-r--r-- | qt-mobile/main.qml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/qt-mobile/main.qml b/qt-mobile/main.qml index ffe83d19b..dac37e09b 100644 --- a/qt-mobile/main.qml +++ b/qt-mobile/main.qml @@ -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 + } + } + } } } |