Warning, /plasma/plasma-workspace/lookandfeel/components/animation/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 signal finished() 0016 0017 readonly property Animation __animation: RejectPasswordPathAnimation { 0018 id: animation 0019 target: Item { id: fakeTarget } 0020 onFinished: root.finished() 0021 } 0022 0023 property Binding __bindEnabled: Binding { 0024 target: root.target 0025 property: "enabled" 0026 value: false 0027 when: animation.running 0028 restoreMode: Binding.RestoreBindingOrValue 0029 } 0030 0031 // real target is getting a Translate object which pulls coordinates from 0032 // a fake Item object 0033 property Binding __bindTransform: Binding { 0034 target: root.target 0035 property: "transform" 0036 value: Translate { 0037 x: fakeTarget.x 0038 } 0039 restoreMode: Binding.RestoreBindingOrValue 0040 } 0041 0042 function start() { 0043 animation.start(); 0044 } 0045 }