[kcmkwin/compositing] Fix effect video previews
Summary:
Currently, video previews do not work because we try to call showHide()
function that was removed in 787c39cd42
.
Reviewers: #kwin, #plasma, davidedmundson
Reviewed By: #kwin, #plasma, davidedmundson
Subscribers: kwin
Tags: #kwin
Differential Revision: https://phabricator.kde.org/D18720
This commit is contained in:
parent
f3c1786a89
commit
0b4482dc2e
2 changed files with 1 additions and 5 deletions
|
@ -129,9 +129,6 @@ Rectangle {
|
||||||
videoItem.visible = false;
|
videoItem.visible = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onLoaded: {
|
|
||||||
videoItem.item.showHide();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Item {
|
Item {
|
||||||
|
|
|
@ -26,8 +26,7 @@ import QtMultimedia 5.0 as Multimedia
|
||||||
|
|
||||||
Multimedia.Video {
|
Multimedia.Video {
|
||||||
id: videoItem
|
id: videoItem
|
||||||
autoLoad: false
|
autoPlay: true
|
||||||
visible: false
|
|
||||||
source: model.VideoRole
|
source: model.VideoRole
|
||||||
width: 400
|
width: 400
|
||||||
height: 400
|
height: 400
|
||||||
|
|
Loading…
Reference in a new issue