fix: fix all remaining QML warnings

This commit is contained in:
Jonathan Rainville 2020-07-22 16:46:28 -04:00 committed by Iuri Matias
parent 3b9ada93d0
commit 9654f937f2
5 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,6 @@ Popup {
}
contentItem: ColumnLayout {
parent: popup
anchors.fill: parent
spacing: 0

View File

@ -18,7 +18,7 @@ Item {
id: assetInfoImage
width: 36
height: 36
source: "../../img/tokens/" + symbol + ".png"
source: symbol ? "../../img/tokens/" + symbol + ".png" : ""
anchors.left: parent.left
anchors.leftMargin: 0
anchors.verticalCenter: parent.verticalCenter

View File

@ -119,7 +119,7 @@ Item {
id: assetTypeSelect
iconHeight: 24
iconWidth: 24
icon: "../../../img/tokens/" + selectedAssetSymbol.toUpperCase() + ".png"
icon: selectedAssetSymbol ? "../../../img/tokens/" + selectedAssetSymbol.toUpperCase() + ".png" : ""
//% "Select the asset"
label: qsTrId("select-the-asset")
anchors.top: txtAmount.bottom

View File

@ -62,7 +62,7 @@ Item {
}
StyledText {
id: assetFullTokenName
text: name
text: name || ""
anchors.bottom: assetInfoImage.bottom
anchors.bottomMargin: 0
anchors.left: assetInfoImage.right

View File

@ -326,6 +326,7 @@ DISTFILES += \
shared/StyledTextArea.qml \
shared/StyledTextEdit.qml \
shared/StyledTextField.qml \
shared/SVGImage.qml \
shared/TextWithLabel.qml \
shared/img/check.svg \
shared/img/close.svg \