OpenCoverage

qquicktranslate_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquicktranslate_p.h
Source codeSwitch to Preprocessed file
LineSourceCount
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 QQUICKTRANSLATE_P_H-
41#define QQUICKTRANSLATE_P_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 <QtGui/qmatrix4x4.h>-
57-
58QT_BEGIN_NAMESPACE-
59-
60class QQuickTranslatePrivate;-
61class Q_AUTOTEST_EXPORT QQuickTranslate : public QQuickTransform-
62{-
63 Q_OBJECT-
64-
65 Q_PROPERTY(qreal x READ x WRITE setX NOTIFY xChanged)-
66 Q_PROPERTY(qreal y READ y WRITE setY NOTIFY yChanged)-
67-
68public:-
69 QQuickTranslate(QObject *parent = nullptr);-
70 ~QQuickTranslate();-
71-
72 qreal x() const;-
73 void setX(qreal);-
74-
75 qreal y() const;-
76 void setY(qreal);-
77-
78 void applyTo(QMatrix4x4 *matrix) const override;-
79-
80Q_SIGNALS:-
81 void xChanged();-
82 void yChanged();-
83-
84private:-
85 Q_DECLARE_PRIVATE(QQuickTranslate)
executed 12 times by 2 tests: return reinterpret_cast<QQuickTranslatePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qquickitem2
executed 6 times by 2 tests: return reinterpret_cast<const QQuickTranslatePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qquickitem2
6-12
86 Q_DISABLE_COPY(QQuickTranslate)-
87};-
88-
89class QQuickScalePrivate;-
90class Q_AUTOTEST_EXPORT QQuickScale : public QQuickTransform-
91{-
92 Q_OBJECT-
93-
94 Q_PROPERTY(QVector3D origin READ origin WRITE setOrigin NOTIFY originChanged)-
95 Q_PROPERTY(qreal xScale READ xScale WRITE setXScale NOTIFY xScaleChanged)-
96 Q_PROPERTY(qreal yScale READ yScale WRITE setYScale NOTIFY yScaleChanged)-
97 Q_PROPERTY(qreal zScale READ zScale WRITE setZScale NOTIFY zScaleChanged)-
98public:-
99 QQuickScale(QObject *parent = nullptr);-
100 ~QQuickScale();-
101-
102 QVector3D origin() const;-
103 void setOrigin(const QVector3D &point);-
104-
105 qreal xScale() const;-
106 void setXScale(qreal);-
107-
108 qreal yScale() const;-
109 void setYScale(qreal);-
110-
111 qreal zScale() const;-
112 void setZScale(qreal);-
113-
114 void applyTo(QMatrix4x4 *matrix) const override;-
115-
116Q_SIGNALS:-
117 void originChanged();-
118 void xScaleChanged();-
119 void yScaleChanged();-
120 void zScaleChanged();-
121 void scaleChanged();-
122-
123private:-
124 Q_DECLARE_PRIVATE(QQuickScale)
executed 16 times by 3 tests: return reinterpret_cast<QQuickScalePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickstates
executed 6 times by 2 tests: return reinterpret_cast<const QQuickScalePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_qquickitem2
  • tst_qquickstates
6-16
125};-
126-
127class QQuickRotationPrivate;-
128class Q_AUTOTEST_EXPORT QQuickRotation : public QQuickTransform-
129{-
130 Q_OBJECT-
131-
132 Q_PROPERTY(QVector3D origin READ origin WRITE setOrigin NOTIFY originChanged)-
133 Q_PROPERTY(qreal angle READ angle WRITE setAngle NOTIFY angleChanged)-
134 Q_PROPERTY(QVector3D axis READ axis WRITE setAxis NOTIFY axisChanged)-
135public:-
136 QQuickRotation(QObject *parent = nullptr);-
137 ~QQuickRotation();-
138-
139 QVector3D origin() const;-
140 void setOrigin(const QVector3D &point);-
141-
142 qreal angle() const;-
143 void setAngle(qreal);-
144-
145 QVector3D axis() const;-
146 void setAxis(const QVector3D &axis);-
147 void setAxis(Qt::Axis axis);-
148-
149 void applyTo(QMatrix4x4 *matrix) const override;-
150-
151Q_SIGNALS:-
152 void originChanged();-
153 void angleChanged();-
154 void axisChanged();-
155-
156private:-
157 Q_DECLARE_PRIVATE(QQuickRotation)
executed 3412 times by 5 tests: return reinterpret_cast<QQuickRotationPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qquickflipable
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickstates
executed 3693 times by 5 tests: return reinterpret_cast<const QQuickRotationPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qquickflipable
  • tst_qquickitem2
  • tst_qquickpathview
  • tst_qquickstates
3412-3693
158};-
159-
160class QQuickMatrix4x4Private;-
161class Q_AUTOTEST_EXPORT QQuickMatrix4x4 : public QQuickTransform-
162{-
163 Q_OBJECT-
164-
165 Q_PROPERTY(QMatrix4x4 matrix READ matrix WRITE setMatrix NOTIFY matrixChanged)-
166public:-
167 QQuickMatrix4x4(QObject *parent = nullptr);-
168 ~QQuickMatrix4x4();-
169-
170 QMatrix4x4 matrix() const;-
171 void setMatrix(const QMatrix4x4& matrix);-
172-
173 void applyTo(QMatrix4x4 *matrix) const override;-
174-
175Q_SIGNALS:-
176 void matrixChanged();-
177-
178private:-
179 Q_DECLARE_PRIVATE(QQuickMatrix4x4)
executed 2 times by 1 test: return reinterpret_cast<QQuickMatrix4x4Private *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_qquickitem2
executed 2 times by 1 test: return reinterpret_cast<const QQuickMatrix4x4Private *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_qquickitem2
2
180};-
181-
182-
183QT_END_NAMESPACE-
184-
185QML_DECLARE_TYPE(QQuickTranslate)-
186-
187#endif-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0