StudioWelcome: Check for undefined to avoid warnings

Change-Id: Iddfa3a6dfec3e0b19be83778e9e005fc2c342a59
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2021-11-29 14:32:13 +01:00
parent 510ee46305
commit fb3939567b
3 changed files with 4 additions and 4 deletions

View File

@@ -89,7 +89,7 @@ Item {
width: 177
height: 15
color: Constants.currentBrand
text: prettyFilePath
text: typeof(prettyFilePath) === "undefined" ? "" : prettyFilePath
elide: Text.ElideLeft
font.pixelSize: 12
leftPadding: 5

View File

@@ -52,7 +52,7 @@ Item {
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
source: thumbnail
source: typeof(thumbnail) === "undefined" ? "" : thumbnail
anchors.rightMargin: 8
anchors.leftMargin: 10
anchors.topMargin: 8
@@ -89,7 +89,7 @@ Item {
width: 177
height: 15
color: Constants.currentBrand
text: prettyFilePath
text: typeof(prettyFilePath) === "undefined" ? "" : prettyFilePath
elide: Text.ElideLeft
font.pixelSize: 12
leftPadding: 5

View File

@@ -68,7 +68,7 @@ Item {
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
source: thumbnail
source: typeof(thumbnail) === "undefined" ? "" : thumbnail
anchors.rightMargin: 8
anchors.leftMargin: 10
anchors.topMargin: 8