From 0b4482dc2e968a7fd2d74c05e88a976e46711c27 Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Mon, 4 Feb 2019 13:44:16 +0200 Subject: [PATCH] [kcmkwin/compositing] Fix effect video previews Summary: Currently, video previews do not work because we try to call showHide() function that was removed in 787c39cd420ac1af856765ed18f01271ece045db. Reviewers: #kwin, #plasma, davidedmundson Reviewed By: #kwin, #plasma, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D18720 --- kcmkwin/kwincompositing/qml/Effect.qml | 3 --- kcmkwin/kwincompositing/qml/Video.qml | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/kcmkwin/kwincompositing/qml/Effect.qml b/kcmkwin/kwincompositing/qml/Effect.qml index 752e9a7882..84607d35d1 100644 --- a/kcmkwin/kwincompositing/qml/Effect.qml +++ b/kcmkwin/kwincompositing/qml/Effect.qml @@ -129,9 +129,6 @@ Rectangle { videoItem.visible = false; } } - onLoaded: { - videoItem.item.showHide(); - } } } Item { diff --git a/kcmkwin/kwincompositing/qml/Video.qml b/kcmkwin/kwincompositing/qml/Video.qml index e7a4d3d606..a194e9bce1 100644 --- a/kcmkwin/kwincompositing/qml/Video.qml +++ b/kcmkwin/kwincompositing/qml/Video.qml @@ -26,8 +26,7 @@ import QtMultimedia 5.0 as Multimedia Multimedia.Video { id: videoItem - autoLoad: false - visible: false + autoPlay: true source: model.VideoRole width: 400 height: 400