mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
16759715e6
commit
15de7f0b71
4 changed files with 49 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue