mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-09 19:43:31 +02:00
documentPreview: show default icon if image is not present
Change-Id: I66f048b1ed96d02fe286dfbcf90473ab677979e4
This commit is contained in:
parent
18c997fb99
commit
928c86a85d
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ Item {
|
||||||
|
|
||||||
ResponsiveImage {
|
ResponsiveImage {
|
||||||
id: fileIcon
|
id: fileIcon
|
||||||
visible: !mediaInfo.isImage && !mediaInfo.isAnimatedImage
|
visible: (!mediaInfo.isImage && !mediaInfo.isAnimatedImage) || icon.status == Image.Error
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 8
|
anchors.margins: 8
|
||||||
source: {
|
source: {
|
||||||
|
@ -120,7 +120,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
AnimatedImage {
|
AnimatedImage {
|
||||||
id: name
|
id: icon
|
||||||
|
|
||||||
property string fileSource: ""
|
property string fileSource: ""
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
Loading…
Add table
Reference in a new issue