2014-03-10 09:40:42 +00:00
|
|
|
/**************************************************************************
|
|
|
|
* KWin - the KDE window manager *
|
|
|
|
* This file is part of the KDE project. *
|
|
|
|
* *
|
|
|
|
* Copyright (C) 2013 Antonis Tsiapaliokas <kok3rs@gmail.com> *
|
|
|
|
* Copyright (C) 2014 Martin Gräßlin <mgraesslin@kde.org> *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
|
|
|
**************************************************************************/
|
[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
|
|
|
|
onStopped: {
|
|
|
|
replayButton.visible = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|