Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickitemanimation_p.h |
Source code | Switch to Preprocessed file |
Line | Source | Count |
---|---|---|
1 | /**************************************************************************** | - |
2 | ** | - |
3 | ** Copyright (C) 2016 The Qt Company Ltd. | - |
4 | ** Contact: https://www.qt.io/licensing/ | - |
5 | ** | - |
6 | ** This file is part of the QtQuick module of the Qt Toolkit. | - |
7 | ** | - |
8 | ** $QT_BEGIN_LICENSE:LGPL$ | - |
9 | ** Commercial License Usage | - |
10 | ** Licensees holding valid commercial Qt licenses may use this file in | - |
11 | ** accordance with the commercial license agreement provided with the | - |
12 | ** Software or, alternatively, in accordance with the terms contained in | - |
13 | ** a written agreement between you and The Qt Company. For licensing terms | - |
14 | ** and conditions see https://www.qt.io/terms-conditions. For further | - |
15 | ** information use the contact form at https://www.qt.io/contact-us. | - |
16 | ** | - |
17 | ** GNU Lesser General Public License Usage | - |
18 | ** Alternatively, this file may be used under the terms of the GNU Lesser | - |
19 | ** General Public License version 3 as published by the Free Software | - |
20 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the | - |
21 | ** packaging of this file. Please review the following information to | - |
22 | ** ensure the GNU Lesser General Public License version 3 requirements | - |
23 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. | - |
24 | ** | - |
25 | ** GNU General Public License Usage | - |
26 | ** Alternatively, this file may be used under the terms of the GNU | - |
27 | ** General Public License version 2.0 or (at your option) the GNU General | - |
28 | ** Public license version 3 or any later version approved by the KDE Free | - |
29 | ** Qt Foundation. The licenses are as published by the Free Software | - |
30 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 | - |
31 | ** included in the packaging of this file. Please review the following | - |
32 | ** information to ensure the GNU General Public License requirements will | - |
33 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and | - |
34 | ** https://www.gnu.org/licenses/gpl-3.0.html. | - |
35 | ** | - |
36 | ** $QT_END_LICENSE$ | - |
37 | ** | - |
38 | ****************************************************************************/ | - |
39 | - | |
40 | #ifndef QQUICKITEMANIMATION_H | - |
41 | #define QQUICKITEMANIMATION_H | - |
42 | - | |
43 | // | - |
44 | // W A R N I N G | - |
45 | // ------------- | - |
46 | // | - |
47 | // This file is not part of the Qt API. It exists purely as an | - |
48 | // implementation detail. This header file may change from version to | - |
49 | // version without notice, or even be removed. | - |
50 | // | - |
51 | // We mean it. | - |
52 | // | - |
53 | - | |
54 | #include "qquickitem.h" | - |
55 | - | |
56 | #include <QtQuick/private/qquickanimation_p.h> | - |
57 | - | |
58 | QT_BEGIN_NAMESPACE | - |
59 | - | |
60 | class QQuickParentAnimationPrivate; | - |
61 | class Q_AUTOTEST_EXPORT QQuickParentAnimation : public QQuickAnimationGroup | - |
62 | { | - |
63 | Q_OBJECT | - |
64 | Q_DECLARE_PRIVATE(QQuickParentAnimation) executed 6 times by 1 test: return reinterpret_cast<QQuickParentAnimationPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
never executed: return reinterpret_cast<const QQuickParentAnimationPrivate *>(qGetPtrHelper(d_ptr)); | 0-6 |
65 | - | |
66 | Q_PROPERTY(QQuickItem *target READ target WRITE setTargetObject NOTIFY targetChanged) | - |
67 | Q_PROPERTY(QQuickItem *newParent READ newParent WRITE setNewParent NOTIFY newParentChanged) | - |
68 | Q_PROPERTY(QQuickItem *via READ via WRITE setVia NOTIFY viaChanged) | - |
69 | - | |
70 | public: | - |
71 | QQuickParentAnimation(QObject *parent=nullptr); | - |
72 | virtual ~QQuickParentAnimation(); | - |
73 | - | |
74 | QQuickItem *target() const; | - |
75 | void setTargetObject(QQuickItem *); | - |
76 | - | |
77 | QQuickItem *newParent() const; | - |
78 | void setNewParent(QQuickItem *); | - |
79 | - | |
80 | QQuickItem *via() const; | - |
81 | void setVia(QQuickItem *); | - |
82 | - | |
83 | Q_SIGNALS: | - |
84 | void targetChanged(); | - |
85 | void newParentChanged(); | - |
86 | void viaChanged(); | - |
87 | - | |
88 | protected: | - |
89 | QAbstractAnimationJob* transition(QQuickStateActions &actions, | - |
90 | QQmlProperties &modified, | - |
91 | TransitionDirection direction, | - |
92 | QObject *defaultTarget = nullptr) override; | - |
93 | }; | - |
94 | - | |
95 | class QQuickAnchorAnimationPrivate; | - |
96 | class Q_AUTOTEST_EXPORT QQuickAnchorAnimation : public QQuickAbstractAnimation | - |
97 | { | - |
98 | Q_OBJECT | - |
99 | Q_DECLARE_PRIVATE(QQuickAnchorAnimation) executed 18 times by 2 tests: return reinterpret_cast<QQuickAnchorAnimationPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
never executed: return reinterpret_cast<const QQuickAnchorAnimationPrivate *>(qGetPtrHelper(d_ptr)); | 0-18 |
100 | Q_PROPERTY(QQmlListProperty<QQuickItem> targets READ targets) | - |
101 | Q_PROPERTY(int duration READ duration WRITE setDuration NOTIFY durationChanged) | - |
102 | Q_PROPERTY(QEasingCurve easing READ easing WRITE setEasing NOTIFY easingChanged) | - |
103 | - | |
104 | public: | - |
105 | QQuickAnchorAnimation(QObject *parent=nullptr); | - |
106 | virtual ~QQuickAnchorAnimation(); | - |
107 | - | |
108 | QQmlListProperty<QQuickItem> targets(); | - |
109 | - | |
110 | int duration() const; | - |
111 | void setDuration(int); | - |
112 | - | |
113 | QEasingCurve easing() const; | - |
114 | void setEasing(const QEasingCurve &); | - |
115 | - | |
116 | Q_SIGNALS: | - |
117 | void durationChanged(int); | - |
118 | void easingChanged(const QEasingCurve&); | - |
119 | - | |
120 | protected: | - |
121 | QAbstractAnimationJob* transition(QQuickStateActions &actions, | - |
122 | QQmlProperties &modified, | - |
123 | TransitionDirection direction, | - |
124 | QObject *defaultTarget = nullptr) override; | - |
125 | }; | - |
126 | - | |
127 | #if QT_CONFIG(quick_path) | - |
128 | - | |
129 | class QQuickItem; | - |
130 | class QQuickPath; | - |
131 | class QQuickPathAnimationPrivate; | - |
132 | class Q_AUTOTEST_EXPORT QQuickPathAnimation : public QQuickAbstractAnimation | - |
133 | { | - |
134 | Q_OBJECT | - |
135 | Q_DECLARE_PRIVATE(QQuickPathAnimation) executed 100 times by 2 tests: return reinterpret_cast<QQuickPathAnimationPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 18 times by 2 tests: return reinterpret_cast<const QQuickPathAnimationPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
| 18-100 |
136 | - | |
137 | Q_PROPERTY(int duration READ duration WRITE setDuration NOTIFY durationChanged) | - |
138 | Q_PROPERTY(QEasingCurve easing READ easing WRITE setEasing NOTIFY easingChanged) | - |
139 | Q_PROPERTY(QQuickPath *path READ path WRITE setPath NOTIFY pathChanged) | - |
140 | Q_PROPERTY(QQuickItem *target READ target WRITE setTargetObject NOTIFY targetChanged) | - |
141 | Q_PROPERTY(Orientation orientation READ orientation WRITE setOrientation NOTIFY orientationChanged) | - |
142 | Q_PROPERTY(QPointF anchorPoint READ anchorPoint WRITE setAnchorPoint NOTIFY anchorPointChanged) | - |
143 | Q_PROPERTY(int orientationEntryDuration READ orientationEntryDuration WRITE setOrientationEntryDuration NOTIFY orientationEntryDurationChanged) | - |
144 | Q_PROPERTY(int orientationExitDuration READ orientationExitDuration WRITE setOrientationExitDuration NOTIFY orientationExitDurationChanged) | - |
145 | Q_PROPERTY(qreal endRotation READ endRotation WRITE setEndRotation NOTIFY endRotationChanged) | - |
146 | - | |
147 | public: | - |
148 | QQuickPathAnimation(QObject *parent=nullptr); | - |
149 | virtual ~QQuickPathAnimation(); | - |
150 | - | |
151 | enum Orientation { | - |
152 | Fixed, | - |
153 | RightFirst, | - |
154 | LeftFirst, | - |
155 | BottomFirst, | - |
156 | TopFirst | - |
157 | }; | - |
158 | Q_ENUM(Orientation) | - |
159 | - | |
160 | int duration() const; | - |
161 | void setDuration(int); | - |
162 | - | |
163 | QEasingCurve easing() const; | - |
164 | void setEasing(const QEasingCurve &); | - |
165 | - | |
166 | QQuickPath *path() const; | - |
167 | void setPath(QQuickPath *); | - |
168 | - | |
169 | QQuickItem *target() const; | - |
170 | void setTargetObject(QQuickItem *); | - |
171 | - | |
172 | Orientation orientation() const; | - |
173 | void setOrientation(Orientation orientation); | - |
174 | - | |
175 | QPointF anchorPoint() const; | - |
176 | void setAnchorPoint(const QPointF &point); | - |
177 | - | |
178 | int orientationEntryDuration() const; | - |
179 | void setOrientationEntryDuration(int); | - |
180 | - | |
181 | int orientationExitDuration() const; | - |
182 | void setOrientationExitDuration(int); | - |
183 | - | |
184 | qreal endRotation() const; | - |
185 | void setEndRotation(qreal); | - |
186 | - | |
187 | protected: | - |
188 | QAbstractAnimationJob* transition(QQuickStateActions &actions, | - |
189 | QQmlProperties &modified, | - |
190 | TransitionDirection direction, | - |
191 | QObject *defaultTarget = nullptr) override; | - |
192 | Q_SIGNALS: | - |
193 | void durationChanged(int); | - |
194 | void easingChanged(const QEasingCurve &); | - |
195 | void pathChanged(); | - |
196 | void targetChanged(); | - |
197 | void orientationChanged(Orientation); | - |
198 | void anchorPointChanged(const QPointF &); | - |
199 | void orientationEntryDurationChanged(qreal); | - |
200 | void orientationExitDurationChanged(qreal); | - |
201 | void endRotationChanged(qreal); | - |
202 | }; | - |
203 | - | |
204 | #endif | - |
205 | - | |
206 | QT_END_NAMESPACE | - |
207 | - | |
208 | QML_DECLARE_TYPE(QQuickParentAnimation) | - |
209 | QML_DECLARE_TYPE(QQuickAnchorAnimation) | - |
210 | #if QT_CONFIG(quick_path) | - |
211 | QML_DECLARE_TYPE(QQuickPathAnimation) | - |
212 | #endif | - |
213 | - | |
214 | #endif // QQUICKITEMANIMATION_H | - |
Source code | Switch to Preprocessed file |