Removing some runtime warnings about null values

This commit is contained in:
Bradley Austin Davis 2016-02-01 14:13:32 -08:00
parent 7938270802
commit 4b9e5746cd
2 changed files with 3 additions and 3 deletions

View file

@ -54,10 +54,10 @@ Frame {
Text {
id: titleText
anchors { left: parent.left; leftMargin: iconSize; right: controlsRow.left; rightMargin: iconSize; top: parent.top; topMargin: iconSize / 2; }
text: window.title
text: window ? window.title : ""
elide: Text.ElideRight
font.bold: true
color: window.focus ? "white" : "gray"
color: (window && window.focus) ? "white" : "gray"
style: Text.Outline;
styleColor: "black"
}

View file

@ -25,7 +25,7 @@ Item {
id: debugZ
visible: DebugQML
text: window ? "Z: " + window.z : ""
y: window.height + 4
y: window ? window.height + 4 : 0
}
function deltaSize(dx, dy) {