forked from qt-creator/qt-creator
StudioWelcome: Check for undefined to avoid warnings
Change-Id: Iddfa3a6dfec3e0b19be83778e9e005fc2c342a59 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -89,7 +89,7 @@ Item {
|
|||||||
width: 177
|
width: 177
|
||||||
height: 15
|
height: 15
|
||||||
color: Constants.currentBrand
|
color: Constants.currentBrand
|
||||||
text: prettyFilePath
|
text: typeof(prettyFilePath) === "undefined" ? "" : prettyFilePath
|
||||||
elide: Text.ElideLeft
|
elide: Text.ElideLeft
|
||||||
font.pixelSize: 12
|
font.pixelSize: 12
|
||||||
leftPadding: 5
|
leftPadding: 5
|
||||||
|
@@ -52,7 +52,7 @@ Item {
|
|||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
source: thumbnail
|
source: typeof(thumbnail) === "undefined" ? "" : thumbnail
|
||||||
anchors.rightMargin: 8
|
anchors.rightMargin: 8
|
||||||
anchors.leftMargin: 10
|
anchors.leftMargin: 10
|
||||||
anchors.topMargin: 8
|
anchors.topMargin: 8
|
||||||
@@ -89,7 +89,7 @@ Item {
|
|||||||
width: 177
|
width: 177
|
||||||
height: 15
|
height: 15
|
||||||
color: Constants.currentBrand
|
color: Constants.currentBrand
|
||||||
text: prettyFilePath
|
text: typeof(prettyFilePath) === "undefined" ? "" : prettyFilePath
|
||||||
elide: Text.ElideLeft
|
elide: Text.ElideLeft
|
||||||
font.pixelSize: 12
|
font.pixelSize: 12
|
||||||
leftPadding: 5
|
leftPadding: 5
|
||||||
|
@@ -68,7 +68,7 @@ Item {
|
|||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
source: thumbnail
|
source: typeof(thumbnail) === "undefined" ? "" : thumbnail
|
||||||
anchors.rightMargin: 8
|
anchors.rightMargin: 8
|
||||||
anchors.leftMargin: 10
|
anchors.leftMargin: 10
|
||||||
anchors.topMargin: 8
|
anchors.topMargin: 8
|
||||||
|
Reference in New Issue
Block a user