Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickflickable_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | class QQuickFlickablePrivate; | - |
5 | class QQuickFlickableVisibleArea; | - |
6 | class __attribute__((visibility("default"))) QQuickFlickable : public QQuickItem | - |
7 | { | - |
8 | public: | - |
9 | #pragma GCC diagnostic push | - |
10 | - | |
11 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
12 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
13 | #pragma GCC diagnostic ignored "-Wattributes" | - |
14 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
15 | #pragma GCC diagnostic pop | - |
16 | struct QPrivateSignal {}; | - |
17 | - | |
18 | - | |
19 | - | |
20 | - | |
21 | - | |
22 | - | |
23 | - | |
24 | - | |
25 | - | |
26 | - | |
27 | - | |
28 | - | |
29 | - | |
30 | - | |
31 | - | |
32 | - | |
33 | - | |
34 | - | |
35 | - | |
36 | - | |
37 | - | |
38 | - | |
39 | - | |
40 | - | |
41 | - | |
42 | - | |
43 | - | |
44 | - | |
45 | - | |
46 | - | |
47 | - | |
48 | - | |
49 | - | |
50 | - | |
51 | - | |
52 | - | |
53 | - | |
54 | - | |
55 | - | |
56 | - | |
57 | - | |
58 | - | |
59 | - | |
60 | - | |
61 | - | |
62 | - | |
63 | - | |
64 | - | |
65 | - | |
66 | - | |
67 | - | |
68 | - | |
69 | - | |
70 | public: | - |
71 | QQuickFlickable(QQuickItem *parent=nullptr); | - |
72 | ~QQuickFlickable(); | - |
73 | - | |
74 | QQmlListProperty<QObject> flickableData(); | - |
75 | QQmlListProperty<QQuickItem> flickableChildren(); | - |
76 | - | |
77 | enum BoundsBehaviorFlag { | - |
78 | StopAtBounds = 0x0, | - |
79 | DragOverBounds = 0x1, | - |
80 | OvershootBounds = 0x2, | - |
81 | DragAndOvershootBounds = DragOverBounds | OvershootBounds | - |
82 | }; | - |
83 | typedef QFlags<BoundsBehaviorFlag> BoundsBehavior; | - |
84 | friend constexpr const QMetaObject *qt_getEnumMetaObject(BoundsBehavior) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(BoundsBehavior) noexcept { return "BoundsBehavior"; } | - |
85 | - | |
86 | BoundsBehavior boundsBehavior() const; | - |
87 | void setBoundsBehavior(BoundsBehavior); | - |
88 | - | |
89 | enum BoundsMovement { | - |
90 | - | |
91 | FollowBoundsBehavior = 0x1 | - |
92 | }; | - |
93 | friend constexpr const QMetaObject *qt_getEnumMetaObject(BoundsMovement) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(BoundsMovement) noexcept { return "BoundsMovement"; } | - |
94 | - | |
95 | BoundsMovement boundsMovement() const; | - |
96 | void setBoundsMovement(BoundsMovement movement); | - |
97 | - | |
98 | QQuickTransition *rebound() const; | - |
99 | void setRebound(QQuickTransition *transition); | - |
100 | - | |
101 | qreal contentWidth() const; | - |
102 | void setContentWidth(qreal); | - |
103 | - | |
104 | qreal contentHeight() const; | - |
105 | void setContentHeight(qreal); | - |
106 | - | |
107 | qreal contentX() const; | - |
108 | virtual void setContentX(qreal pos); | - |
109 | - | |
110 | qreal contentY() const; | - |
111 | virtual void setContentY(qreal pos); | - |
112 | - | |
113 | qreal topMargin() const; | - |
114 | void setTopMargin(qreal m); | - |
115 | - | |
116 | qreal bottomMargin() const; | - |
117 | void setBottomMargin(qreal m); | - |
118 | - | |
119 | qreal leftMargin() const; | - |
120 | void setLeftMargin(qreal m); | - |
121 | - | |
122 | qreal rightMargin() const; | - |
123 | void setRightMargin(qreal m); | - |
124 | - | |
125 | virtual qreal originY() const; | - |
126 | virtual qreal originX() const; | - |
127 | - | |
128 | bool isMoving() const; | - |
129 | bool isMovingHorizontally() const; | - |
130 | bool isMovingVertically() const; | - |
131 | bool isFlicking() const; | - |
132 | bool isFlickingHorizontally() const; | - |
133 | bool isFlickingVertically() const; | - |
134 | bool isDragging() const; | - |
135 | bool isDraggingHorizontally() const; | - |
136 | bool isDraggingVertically() const; | - |
137 | - | |
138 | int pressDelay() const; | - |
139 | void setPressDelay(int delay); | - |
140 | - | |
141 | qreal maximumFlickVelocity() const; | - |
142 | void setMaximumFlickVelocity(qreal); | - |
143 | - | |
144 | qreal flickDeceleration() const; | - |
145 | void setFlickDeceleration(qreal); | - |
146 | - | |
147 | bool isInteractive() const; | - |
148 | void setInteractive(bool); | - |
149 | - | |
150 | qreal horizontalVelocity() const; | - |
151 | qreal verticalVelocity() const; | - |
152 | - | |
153 | bool isAtXEnd() const; | - |
154 | bool isAtXBeginning() const; | - |
155 | bool isAtYEnd() const; | - |
156 | bool isAtYBeginning() const; | - |
157 | - | |
158 | QQuickItem *contentItem() const; | - |
159 | - | |
160 | enum FlickableDirection { AutoFlickDirection=0x0, HorizontalFlick=0x1, VerticalFlick=0x2, HorizontalAndVerticalFlick=0x3, | - |
161 | AutoFlickIfNeeded=0xc }; | - |
162 | friend constexpr const QMetaObject *qt_getEnumMetaObject(FlickableDirection) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(FlickableDirection) noexcept { return "FlickableDirection"; } | - |
163 | FlickableDirection flickableDirection() const; | - |
164 | void setFlickableDirection(FlickableDirection); | - |
165 | - | |
166 | bool pixelAligned() const; | - |
167 | void setPixelAligned(bool align); | - |
168 | - | |
169 | qreal horizontalOvershoot() const; | - |
170 | qreal verticalOvershoot() const; | - |
171 | - | |
172 | void resizeContent(qreal w, qreal h, QPointF center); | - |
173 | void returnToBounds(); | - |
174 | void flick(qreal xVelocity, qreal yVelocity); | - |
175 | void cancelFlick(); | - |
176 | - | |
177 | public : | - |
178 | void contentWidthChanged(); | - |
179 | void contentHeightChanged(); | - |
180 | void contentXChanged(); | - |
181 | void contentYChanged(); | - |
182 | void topMarginChanged(); | - |
183 | void bottomMarginChanged(); | - |
184 | void leftMarginChanged(); | - |
185 | void rightMarginChanged(); | - |
186 | void originYChanged(); | - |
187 | void originXChanged(); | - |
188 | void movingChanged(); | - |
189 | void movingHorizontallyChanged(); | - |
190 | void movingVerticallyChanged(); | - |
191 | void flickingChanged(); | - |
192 | void flickingHorizontallyChanged(); | - |
193 | void flickingVerticallyChanged(); | - |
194 | void draggingChanged(); | - |
195 | void draggingHorizontallyChanged(); | - |
196 | void draggingVerticallyChanged(); | - |
197 | void horizontalVelocityChanged(); | - |
198 | void verticalVelocityChanged(); | - |
199 | void isAtBoundaryChanged(); | - |
200 | void flickableDirectionChanged(); | - |
201 | void interactiveChanged(); | - |
202 | void boundsBehaviorChanged(); | - |
203 | void boundsMovementChanged(); | - |
204 | void reboundChanged(); | - |
205 | void maximumFlickVelocityChanged(); | - |
206 | void flickDecelerationChanged(); | - |
207 | void pressDelayChanged(); | - |
208 | void movementStarted(); | - |
209 | void movementEnded(); | - |
210 | void flickStarted(); | - |
211 | void flickEnded(); | - |
212 | void dragStarted(); | - |
213 | void dragEnded(); | - |
214 | void pixelAlignedChanged(); | - |
215 | void horizontalOvershootChanged(); | - |
216 | void verticalOvershootChanged(); | - |
217 | - | |
218 | protected: | - |
219 | bool childMouseEventFilter(QQuickItem *, QEvent *) override; | - |
220 | void mousePressEvent(QMouseEvent *event) override; | - |
221 | void mouseMoveEvent(QMouseEvent *event) override; | - |
222 | void mouseReleaseEvent(QMouseEvent *event) override; | - |
223 | - | |
224 | void wheelEvent(QWheelEvent *event) override; | - |
225 | - | |
226 | void timerEvent(QTimerEvent *event) override; | - |
227 | - | |
228 | QQuickFlickableVisibleArea *visibleArea(); | - |
229 | - | |
230 | protected : | - |
231 | void movementStarting(); | - |
232 | void movementEnding(); | - |
233 | void movementEnding(bool hMovementEnding, bool vMovementEnding); | - |
234 | void velocityTimelineCompleted(); | - |
235 | void timelineCompleted(); | - |
236 | - | |
237 | protected: | - |
238 | virtual qreal minXExtent() const; | - |
239 | virtual qreal minYExtent() const; | - |
240 | virtual qreal maxXExtent() const; | - |
241 | virtual qreal maxYExtent() const; | - |
242 | qreal vWidth() const; | - |
243 | qreal vHeight() const; | - |
244 | void componentComplete() override; | - |
245 | virtual void viewportMoved(Qt::Orientations orient); | - |
246 | void geometryChanged(const QRectF &newGeometry, | - |
247 | const QRectF &oldGeometry) override; | - |
248 | void mouseUngrabEvent() override; | - |
249 | bool filterMouseEvent(QQuickItem *receiver, QMouseEvent *event); | - |
250 | - | |
251 | bool xflick() const; | - |
252 | bool yflick() const; | - |
253 | - | |
254 | protected: | - |
255 | QQuickFlickable(QQuickFlickablePrivate &dd, QQuickItem *parent); | - |
256 | - | |
257 | private: | - |
258 | QQuickFlickable(const QQuickFlickable &) = delete; QQuickFlickable &operator=(const QQuickFlickable &) = delete; | - |
259 | inline QQuickFlickablePrivate* d_func() { return executed 125369 times by 18 tests: reinterpret_cast<QQuickFlickablePrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQuickFlickablePrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 125369 times by 18 tests: } inline const QQuickFlickablePrivate* d_func() const { returnreturn reinterpret_cast<QQuickFlickablePrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 752497 times by 18 tests: reinterpret_cast<const QQuickFlickablePrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQuickFlickablePrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 752497 times by 18 tests: } friend class QQuickFlickablePrivate;return reinterpret_cast<const QQuickFlickablePrivate *>(qGetPtrHelper(d_ptr)); Executed by:
| 125369-752497 |
260 | friend class QQuickFlickableContentItem; | - |
261 | friend class QQuickFlickableVisibleArea; | - |
262 | friend class QQuickFlickableReboundTransition; | - |
263 | }; | - |
264 | - | |
265 | - | |
266 | - | |
267 | template <> struct QMetaTypeId< QQuickFlickable * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickFlickable * >("QQuickFlickable *", reinterpret_cast< QQuickFlickable * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickFlickable> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickFlickable> >("QQmlListProperty<QQuickFlickable>", reinterpret_cast< QQmlListProperty<QQuickFlickable> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
Switch to Source code | Preprocessed file |