2020-08-02 22:22:19 +00:00
|
|
|
/*
|
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
|
|
|
|
|
|
|
SPDX-FileCopyrightText: 2013 Antonis Tsiapaliokas <kok3rs@gmail.com>
|
|
|
|
SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
[kcmkwin/kwineffects] Rework the Effects KCM
Summary:
Use the same list style as the Virtual Desktops KCM and Kirigami actions with tooltips.
Also removes the info button. The copyright info can now be accessed by clicking on the item.
BUG: 409693
BUG: 335197
BUG: 335198
Test Plan:
Together with D22827:
{F7138726}
Reviewers: #kwin, #vdg, filipf, GB_2, ngraham, davidedmundson
Reviewed By: #kwin, #vdg, filipf, GB_2, ngraham, davidedmundson
Subscribers: ngraham, GB_2, filipf, kwin
Tags: #kwin, #vdg
Maniphest Tasks: T10273
Differential Revision: https://phabricator.kde.org/D22830
2019-08-03 07:41:36 +00:00
|
|
|
|
|
|
|
import QtQuick 2.5
|
|
|
|
import QtQuick.Controls 2.5 as QQC2
|
|
|
|
import QtQuick.Layouts 1.1
|
2014-03-10 09:40:42 +00:00
|
|
|
import QtMultimedia 5.0 as Multimedia
|
|
|
|
|
|
|
|
Multimedia.Video {
|
|
|
|
id: videoItem
|
2019-02-04 11:44:16 +00:00
|
|
|
autoPlay: true
|
2014-03-10 09:40:42 +00:00
|
|
|
source: model.VideoRole
|
|
|
|
width: 400
|
|
|
|
height: 400
|
[kcmkwin/compositing] Remove effect list item selection, fix list item size after hiding the effect video, use a real button as the play button and use the right busy indicator
Summary:
Makes some improvements to the Effects KCM (details in title).
{F6464106}
{F6464355}
Test Plan: Open the Effects KCM.
Reviewers: #kwin, #vdg, ngraham, davidedmundson
Reviewed By: #kwin, #vdg, ngraham, davidedmundson
Subscribers: davidedmundson, ngraham, #vdg, kwin, #kwin
Tags: #kwin, #vdg
Differential Revision: https://phabricator.kde.org/D17416
2018-12-11 14:46:07 +00:00
|
|
|
QQC2.BusyIndicator {
|
2014-03-10 09:40:42 +00:00
|
|
|
anchors.centerIn: parent
|
|
|
|
visible: videoItem.status == Multimedia.MediaPlayer.Loading
|
|
|
|
running: true
|
|
|
|
}
|
[kcmkwin/kwineffects] Rework the Effects KCM
Summary:
Use the same list style as the Virtual Desktops KCM and Kirigami actions with tooltips.
Also removes the info button. The copyright info can now be accessed by clicking on the item.
BUG: 409693
BUG: 335197
BUG: 335198
Test Plan:
Together with D22827:
{F7138726}
Reviewers: #kwin, #vdg, filipf, GB_2, ngraham, davidedmundson
Reviewed By: #kwin, #vdg, filipf, GB_2, ngraham, davidedmundson
Subscribers: ngraham, GB_2, filipf, kwin
Tags: #kwin, #vdg
Maniphest Tasks: T10273
Differential Revision: https://phabricator.kde.org/D22830
2019-08-03 07:41:36 +00:00
|
|
|
QQC2.Button {
|
2014-03-10 09:40:42 +00:00
|
|
|
id: replayButton
|
|
|
|
visible: false
|
[kcmkwin/compositing] Remove effect list item selection, fix list item size after hiding the effect video, use a real button as the play button and use the right busy indicator
Summary:
Makes some improvements to the Effects KCM (details in title).
{F6464106}
{F6464355}
Test Plan: Open the Effects KCM.
Reviewers: #kwin, #vdg, ngraham, davidedmundson
Reviewed By: #kwin, #vdg, ngraham, davidedmundson
Subscribers: davidedmundson, ngraham, #vdg, kwin, #kwin
Tags: #kwin, #vdg
Differential Revision: https://phabricator.kde.org/D17416
2018-12-11 14:46:07 +00:00
|
|
|
anchors.centerIn: parent
|
[kcmkwin/kwineffects] Rework the Effects KCM
Summary:
Use the same list style as the Virtual Desktops KCM and Kirigami actions with tooltips.
Also removes the info button. The copyright info can now be accessed by clicking on the item.
BUG: 409693
BUG: 335197
BUG: 335198
Test Plan:
Together with D22827:
{F7138726}
Reviewers: #kwin, #vdg, filipf, GB_2, ngraham, davidedmundson
Reviewed By: #kwin, #vdg, filipf, GB_2, ngraham, davidedmundson
Subscribers: ngraham, GB_2, filipf, kwin
Tags: #kwin, #vdg
Maniphest Tasks: T10273
Differential Revision: https://phabricator.kde.org/D22830
2019-08-03 07:41:36 +00:00
|
|
|
icon.name: "media-playback-start"
|
2014-03-10 09:40:42 +00:00
|
|
|
onClicked: {
|
|
|
|
replayButton.visible = false;
|
|
|
|
videoItem.play();
|
|
|
|
}
|
|
|
|
Connections {
|
|
|
|
target: videoItem
|
2020-11-11 16:44:38 +00:00
|
|
|
function onStopped() {
|
2014-03-10 09:40:42 +00:00
|
|
|
replayButton.visible = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|