Warning, /plasma/libplasma/src/declarativeimports/plasmaextracomponents/qml/animations/ActivateAnimation.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2011 Sebastian Kügler <sebas@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 0008 import org.kde.kirigami as Kirigami 0009 0010 SequentialAnimation { 0011 id: activateAnimation 0012 objectName: "activateAnimation" 0013 0014 property Item targetItem 0015 property int duration: Kirigami.Units.shortDuration 0016 0017 // Fast scaling while we're animation == more FPS 0018 ScriptAction { script: targetItem.smooth = false } 0019 0020 PressedAnimation { targetItem: activateAnimation.targetItem } 0021 ReleasedAnimation { targetItem: activateAnimation.targetItem } 0022 0023 ScriptAction { script: targetItem.smooth = true } 0024 }