Warning, /plasma/polkit-kde-agent-1/qml/RejectPasswordAnimation.qml is written in an unsupported language. File is not indexed.
0001 /*
0002 SPDX-FileCopyrightText: 2022 ivan (@ratijas) tkachenko <me@ratijas.tk>
0003
0004 SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006
0007 import QtQuick 2.15
0008 import QtQml 2.15
0009
0010 QtObject {
0011 id: root
0012
0013 property Item target
0014
0015 readonly property Animation __animation: RejectPasswordPathAnimation {
0016 id: animation
0017 target: Item { id: fakeTarget }
0018 }
0019
0020 property Binding __bindEnabled: Binding {
0021 target: root.target
0022 property: "enabled"
0023 value: false
0024 when: animation.running
0025 restoreMode: Binding.RestoreBindingOrValue
0026 }
0027
0028 // real target is getting a Translate object which pulls coordinates from
0029 // a fake Item object
0030 property Binding __bindTransform: Binding {
0031 target: root.target
0032 property: "transform"
0033 value: Translate {
0034 x: fakeTarget.x
0035 }
0036 restoreMode: Binding.RestoreBindingOrValue
0037 }
0038
0039 function start() {
0040 animation.start();
0041 }
0042 }