Fixed invalid component reference in StickerPreview
This commit is contained in:
parent
7dfe7ddc3e
commit
cd0eace631
1 changed files with 6 additions and 3 deletions
|
@ -35,9 +35,6 @@ Item {
|
||||||
implicitWidth: stickerData.width
|
implicitWidth: stickerData.width
|
||||||
implicitHeight: stickerData.height
|
implicitHeight: stickerData.height
|
||||||
|
|
||||||
layer.enabled: highlighted
|
|
||||||
layer.effect: PressEffect { source: singleImage }
|
|
||||||
|
|
||||||
TDLibFile {
|
TDLibFile {
|
||||||
id: file
|
id: file
|
||||||
tdlib: tdLibWrapper
|
tdlib: tdLibWrapper
|
||||||
|
@ -59,11 +56,14 @@ Item {
|
||||||
active: animated
|
active: animated
|
||||||
sourceComponent: Component {
|
sourceComponent: Component {
|
||||||
AnimatedImage {
|
AnimatedImage {
|
||||||
|
id: animatedSticker
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
source: file.path
|
source: file.path
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
paused: !Qt.application.active
|
paused: !Qt.application.active
|
||||||
cache: false
|
cache: false
|
||||||
|
layer.enabled: highlighted
|
||||||
|
layer.effect: PressEffect { source: animatedSticker }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -74,6 +74,7 @@ Item {
|
||||||
active: !animated
|
active: !animated
|
||||||
sourceComponent: Component {
|
sourceComponent: Component {
|
||||||
Image {
|
Image {
|
||||||
|
id: staticSticker
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
source: file.path
|
source: file.path
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
|
@ -82,6 +83,8 @@ Item {
|
||||||
visible: opacity > 0
|
visible: opacity > 0
|
||||||
opacity: status === Image.Ready ? 1 : 0
|
opacity: status === Image.Ready ? 1 : 0
|
||||||
Behavior on opacity { FadeAnimation {} }
|
Behavior on opacity { FadeAnimation {} }
|
||||||
|
layer.enabled: highlighted
|
||||||
|
layer.effect: PressEffect { source: staticSticker }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue