Commit ae04fb80 authored by Don Gagne's avatar Don Gagne

Fix text

parent fddfacd9
...@@ -49,7 +49,6 @@ Rectangle { ...@@ -49,7 +49,6 @@ Rectangle {
Rectangle { Rectangle {
readonly property int inset: 5 readonly property int inset: 5
property string calText: calInProgress ? calInProgressText : (calValid ? "Completed" : "Incomplete")
x: inset x: inset
y: inset y: inset
...@@ -71,18 +70,7 @@ Rectangle { ...@@ -71,18 +70,7 @@ Rectangle {
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignBottom verticalAlignment: Text.AlignBottom
font.pixelSize: ScreenTools.mediumFontPixelSize font.pixelSize: ScreenTools.mediumFontPixelSize
font.bold: true text: calInProgress ? calInProgressText : (calValid ? "Completed" : "Incomplete")
color: "black"
text: parent.calText
}
QGCLabel {
width: parent.width
height: parent.height
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignBottom
font.pixelSize: ScreenTools.mediumFontPixelSize
color: calInProgress ? "yellow" : "white"
text: parent.calText
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment