Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquicksmoothedanimation_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKSMOOTHEDANIMATION_H
5#define QQUICKSMOOTHEDANIMATION_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <qqml.h>
19#include "qquickanimation_p.h"
20
21#include <QtCore/qobject.h>
22
24
25class QQmlProperty;
28{
30 Q_DECLARE_PRIVATE(QQuickSmoothedAnimation)
31
32 Q_PROPERTY(qreal velocity READ velocity WRITE setVelocity NOTIFY velocityChanged)
33 Q_PROPERTY(ReversingMode reversingMode READ reversingMode WRITE setReversingMode NOTIFY reversingModeChanged)
34 Q_PROPERTY(qreal maximumEasingTime READ maximumEasingTime WRITE setMaximumEasingTime NOTIFY maximumEasingTimeChanged)
35 QML_NAMED_ELEMENT(SmoothedAnimation)
37
38public:
39 enum ReversingMode { Eased, Immediate, Sync };
40 Q_ENUM(ReversingMode)
41
42 QQuickSmoothedAnimation(QObject *parent = nullptr);
43
44 ReversingMode reversingMode() const;
45 void setReversingMode(ReversingMode);
46
47 int duration() const override;
48 void setDuration(int) override;
49
50 qreal velocity() const;
51 void setVelocity(qreal);
52
53 int maximumEasingTime() const;
54 void setMaximumEasingTime(int);
55
56 QAbstractAnimationJob* transition(QQuickStateActions &actions,
57 QQmlProperties &modified,
58 TransitionDirection direction,
59 QObject *defaultTarget = nullptr) override;
64};
65
67
68#endif // QQUICKSMOOTHEDANIMATION_H
\inmodule QtCore
Definition qobject.h:103
The QQmlProperty class abstracts accessing properties on objects created from QML.
direction
Combined button and popup list for selecting options.
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_ENUM(x)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS
double qreal
Definition qtypes.h:187
animation setDuration(1000)