Added avatar placeholder
icon-l-profile.svg being used if no avatar image can be loaded
This commit is contained in:
parent
c1372109a7
commit
fac72217e8
1 changed files with 6 additions and 1 deletions
|
@ -37,7 +37,12 @@ Item {
|
|||
asynchronous: true
|
||||
width: description === "" ? Theme.iconSizeMedium : Theme.iconSizeLarge
|
||||
height: width
|
||||
source: image
|
||||
source:
|
||||
if (icon.status === Image.Error)
|
||||
source = "../../images/icon-l-profile.svg?" + (pressed
|
||||
? Theme.highlightColor
|
||||
: Theme.primaryColor)
|
||||
else image
|
||||
}
|
||||
Column {
|
||||
anchors {
|
||||
|
|
Loading…
Reference in a new issue