Plasma-framework

ActivateAnimation.qml
1/*
2 SPDX-FileCopyrightText: 2011 Sebastian Kügler <sebas@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7import QtQuick
8import org.kde.kirigami as Kirigami
9
10SequentialAnimation {
11 id: activateAnimation
12 objectName: "activateAnimation"
13
14 property Item targetItem
15 property int duration: Kirigami.Units.shortDuration
16
17 // Fast scaling while we're animation == more FPS
18 ScriptAction { script: targetItem.smooth = false }
19
20 PressedAnimation { targetItem: activateAnimation.targetItem }
21 ReleasedAnimation { targetItem: activateAnimation.targetItem }
22
23 ScriptAction { script: targetItem.smooth = true }
24}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:54:11 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.