Line | Source Code | Coverage |
---|
1 | | - |
2 | | - |
3 | | - |
4 | QEnterEvent::QEnterEvent(const QPointF &localPos, const QPointF &windowPos, const QPointF &screenPos) | - |
5 | : QEvent(QEvent::Enter) | - |
6 | , l(localPos) | - |
7 | , w(windowPos) | - |
8 | , s(screenPos) | - |
9 | { | - |
10 | } executed: } Execution Count:4285 | 4285 |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | QEnterEvent::~QEnterEvent() | - |
16 | { | - |
17 | } | - |
18 | QInputEvent::QInputEvent(Type type, Qt::KeyboardModifiers modifiers) | - |
19 | : QEvent(type), modState(modifiers), ts(0) | - |
20 | {} executed: } Execution Count:49973 | 49973 |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | QInputEvent::~QInputEvent() | - |
26 | { | - |
27 | } | - |
28 | QMouseEvent::QMouseEvent(Type type, const QPointF &localPos, Qt::MouseButton button, | - |
29 | Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) | - |
30 | : QInputEvent(type, modifiers), l(localPos), w(localPos), b(button), mouseState(buttons), caps(0) | - |
31 | { | - |
32 | s = QCursor::pos(); | - |
33 | } executed: } Execution Count:11462 | 11462 |
34 | QMouseEvent::QMouseEvent(Type type, const QPointF &localPos, const QPointF &screenPos, | - |
35 | Qt::MouseButton button, Qt::MouseButtons buttons, | - |
36 | Qt::KeyboardModifiers modifiers) | - |
37 | : QInputEvent(type, modifiers), l(localPos), w(localPos), s(screenPos), b(button), mouseState(buttons), caps(0) | - |
38 | {} executed: } Execution Count:11698 | 11698 |
39 | QMouseEvent::QMouseEvent(Type type, const QPointF &localPos, const QPointF &windowPos, const QPointF &screenPos, | - |
40 | Qt::MouseButton button, Qt::MouseButtons buttons, | - |
41 | Qt::KeyboardModifiers modifiers) | - |
42 | : QInputEvent(type, modifiers), l(localPos), w(windowPos), s(screenPos), b(button), mouseState(buttons), caps(0) | - |
43 | {} executed: } Execution Count:15359 | 15359 |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | QMouseEvent::~QMouseEvent() | - |
49 | { | - |
50 | } | - |
51 | QHoverEvent::QHoverEvent(Type type, const QPointF &pos, const QPointF &oldPos, Qt::KeyboardModifiers modifiers) | - |
52 | : QInputEvent(type, modifiers), p(pos), op(oldPos) | - |
53 | { | - |
54 | } executed: } Execution Count:65 | 65 |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
59 | QHoverEvent::~QHoverEvent() | - |
60 | { | - |
61 | } | - |
62 | QWheelEvent::QWheelEvent(const QPointF &pos, int delta, | - |
63 | Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, | - |
64 | Qt::Orientation orient) | - |
65 | : QInputEvent(Wheel, modifiers), p(pos), qt4D(delta), qt4O(orient), mouseState(buttons) | - |
66 | { | - |
67 | g = QCursor::pos(); | - |
68 | } executed: } Execution Count:25 | 25 |
69 | | - |
70 | | - |
71 | | - |
72 | | - |
73 | QWheelEvent::~QWheelEvent() | - |
74 | { | - |
75 | } | - |
76 | QWheelEvent::QWheelEvent(const QPointF &pos, const QPointF& globalPos, int delta, | - |
77 | Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, | - |
78 | Qt::Orientation orient) | - |
79 | : QInputEvent(Wheel, modifiers), p(pos), g(globalPos), qt4D(delta), qt4O(orient), mouseState(buttons) | - |
80 | {} executed: } Execution Count:2 | 2 |
81 | QWheelEvent::QWheelEvent(const QPointF &pos, const QPointF& globalPos, | - |
82 | QPoint pixelDelta, QPoint angleDelta, int qt4Delta, Qt::Orientation qt4Orientation, | - |
83 | Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) | - |
84 | : QInputEvent(Wheel, modifiers), p(pos), g(globalPos), pixelD(pixelDelta), | - |
85 | angleD(angleDelta), qt4D(qt4Delta), qt4O(qt4Orientation), mouseState(buttons) | - |
86 | {} executed: } Execution Count:45 | 45 |
87 | QKeyEvent::QKeyEvent(Type type, int key, Qt::KeyboardModifiers modifiers, const QString& text, | - |
88 | bool autorep, ushort count) | - |
89 | : QInputEvent(type, modifiers), txt(text), k(key), | - |
90 | nScanCode(0), nVirtualKey(0), nModifiers(0), | - |
91 | c(count), autor(autorep) | - |
92 | { | - |
93 | } executed: } Execution Count:10627 | 10627 |
94 | QKeyEvent::QKeyEvent(Type type, int key, Qt::KeyboardModifiers modifiers, | - |
95 | quint32 nativeScanCode, quint32 nativeVirtualKey, quint32 nativeModifiers, | - |
96 | const QString &text, bool autorep, ushort count) | - |
97 | : QInputEvent(type, modifiers), txt(text), k(key), | - |
98 | nScanCode(nativeScanCode), nVirtualKey(nativeVirtualKey), nModifiers(nativeModifiers), | - |
99 | c(count), autor(autorep) | - |
100 | { | - |
101 | } executed: } Execution Count:72 | 72 |
102 | | - |
103 | | - |
104 | | - |
105 | | - |
106 | | - |
107 | QKeyEvent::~QKeyEvent() | - |
108 | { | - |
109 | } | - |
110 | Qt::KeyboardModifiers QKeyEvent::modifiers() const | - |
111 | { | - |
112 | if (key() == Qt::Key_Shift) evaluated: key() == Qt::Key_Shift yes Evaluation Count:4269 | yes Evaluation Count:147502 |
| 4269-147502 |
113 | return Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::ShiftModifier); executed: return Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::ShiftModifier); Execution Count:4269 | 4269 |
114 | if (key() == Qt::Key_Control) evaluated: key() == Qt::Key_Control yes Evaluation Count:1723 | yes Evaluation Count:145779 |
| 1723-145779 |
115 | return Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::ControlModifier); executed: return Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::ControlModifier); Execution Count:1723 | 1723 |
116 | if (key() == Qt::Key_Alt) evaluated: key() == Qt::Key_Alt yes Evaluation Count:523 | yes Evaluation Count:145256 |
| 523-145256 |
117 | return Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::AltModifier); executed: return Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::AltModifier); Execution Count:523 | 523 |
118 | if (key() == Qt::Key_Meta) evaluated: key() == Qt::Key_Meta yes Evaluation Count:2 | yes Evaluation Count:145254 |
| 2-145254 |
119 | return Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::MetaModifier); executed: return Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::MetaModifier); Execution Count:2 | 2 |
120 | return QInputEvent::modifiers(); executed: return QInputEvent::modifiers(); Execution Count:145254 | 145254 |
121 | } | - |
122 | bool QKeyEvent::matches(QKeySequence::StandardKey matchKey) const | - |
123 | { | - |
124 | uint searchkey = (modifiers() | key()) & ~(Qt::KeypadModifier); | - |
125 | const uint platform = QKeySequencePrivate::currentKeyPlatforms(); | - |
126 | | - |
127 | | - |
128 | uint N = QKeySequencePrivate::numberOfKeyBindings; | - |
129 | int first = 0; | - |
130 | int last = N - 1; | - |
131 | | - |
132 | while (first <= last) { evaluated: first <= last yes Evaluation Count:867119 | yes Evaluation Count:79084 |
| 79084-867119 |
133 | int mid = (first + last) / 2; | - |
134 | QKeyBinding midVal = QKeySequencePrivate::keyBindings[mid]; | - |
135 | | - |
136 | if (searchkey > midVal.shortcut){ evaluated: searchkey > midVal.shortcut yes Evaluation Count:63665 | yes Evaluation Count:803454 |
| 63665-803454 |
137 | first = mid + 1; | - |
138 | } executed: } Execution Count:63665 | 63665 |
139 | else if (searchkey < midVal.shortcut){ evaluated: searchkey < midVal.shortcut yes Evaluation Count:752566 | yes Evaluation Count:50888 |
| 50888-752566 |
140 | last = mid - 1; | - |
141 | } executed: } Execution Count:752566 | 752566 |
142 | else { | - |
143 | | - |
144 | if ((midVal.platform & platform) && (midVal.standardKey == matchKey)) { evaluated: (midVal.platform & platform) yes Evaluation Count:45334 | yes Evaluation Count:5554 |
evaluated: (midVal.standardKey == matchKey) yes Evaluation Count:604 | yes Evaluation Count:44730 |
| 604-45334 |
145 | return true; executed: return true; Execution Count:604 | 604 |
146 | } else { | - |
147 | | - |
148 | | - |
149 | for ( unsigned int i = mid + 1 ; i < N - 1 ; ++i) { partially evaluated: i < N - 1 yes Evaluation Count:51290 | no Evaluation Count:0 |
| 0-51290 |
150 | QKeyBinding current = QKeySequencePrivate::keyBindings[i]; | - |
151 | if (current.shortcut != searchkey) evaluated: current.shortcut != searchkey yes Evaluation Count:50281 | yes Evaluation Count:1009 |
| 1009-50281 |
152 | break; executed: break; Execution Count:50281 | 50281 |
153 | else if (current.platform & platform && current.standardKey == matchKey) evaluated: current.platform & platform yes Evaluation Count:32 | yes Evaluation Count:977 |
evaluated: current.standardKey == matchKey yes Evaluation Count:3 | yes Evaluation Count:29 |
| 3-977 |
154 | return true; executed: return true; Execution Count:3 | 3 |
155 | } | - |
156 | | - |
157 | | - |
158 | for ( int i = mid - 1 ; i >= 0 ; --i) { evaluated: i >= 0 yes Evaluation Count:49995 | yes Evaluation Count:2560 |
| 2560-49995 |
159 | QKeyBinding current = QKeySequencePrivate::keyBindings[i]; | - |
160 | if (current.shortcut != searchkey) evaluated: current.shortcut != searchkey yes Evaluation Count:47622 | yes Evaluation Count:2373 |
| 2373-47622 |
161 | break; executed: break; Execution Count:47622 | 47622 |
162 | else if (current.platform & platform && current.standardKey == matchKey) evaluated: current.platform & platform yes Evaluation Count:2341 | yes Evaluation Count:32 |
evaluated: current.standardKey == matchKey yes Evaluation Count:99 | yes Evaluation Count:2242 |
| 32-2341 |
163 | return true; executed: return true; Execution Count:99 | 99 |
164 | } | - |
165 | return false; executed: return false; Execution Count:50182 | 50182 |
166 | } | - |
167 | } | - |
168 | } | - |
169 | return false; executed: return false; Execution Count:79084 | 79084 |
170 | } | - |
171 | QFocusEvent::QFocusEvent(Type type, Qt::FocusReason reason) | - |
172 | : QEvent(type), m_reason(reason) | - |
173 | {} executed: } Execution Count:8226 | 8226 |
174 | | - |
175 | | - |
176 | | - |
177 | | - |
178 | QFocusEvent::~QFocusEvent() | - |
179 | { | - |
180 | } | - |
181 | | - |
182 | | - |
183 | | - |
184 | | - |
185 | Qt::FocusReason QFocusEvent::reason() const | - |
186 | { | - |
187 | return m_reason; executed: return m_reason; Execution Count:3808 | 3808 |
188 | } | - |
189 | QPaintEvent::QPaintEvent(const QRegion& paintRegion) | - |
190 | : QEvent(Paint), m_rect(paintRegion.boundingRect()), m_region(paintRegion), m_erased(false) | - |
191 | {} executed: } Execution Count:16430 | 16430 |
192 | | - |
193 | | - |
194 | | - |
195 | | - |
196 | | - |
197 | QPaintEvent::QPaintEvent(const QRect &paintRect) | - |
198 | : QEvent(Paint), m_rect(paintRect),m_region(paintRect), m_erased(false) | - |
199 | {} | 0 |
200 | | - |
201 | | - |
202 | | - |
203 | | - |
204 | | - |
205 | QPaintEvent::~QPaintEvent() | - |
206 | { | - |
207 | } | - |
208 | QMoveEvent::QMoveEvent(const QPoint &pos, const QPoint &oldPos) | - |
209 | : QEvent(Move), p(pos), oldp(oldPos) | - |
210 | {} executed: } Execution Count:14422 | 14422 |
211 | | - |
212 | | - |
213 | | - |
214 | | - |
215 | QMoveEvent::~QMoveEvent() | - |
216 | { | - |
217 | } | - |
218 | QExposeEvent::QExposeEvent(const QRegion &exposeRegion) | - |
219 | : QEvent(Expose) | - |
220 | , rgn(exposeRegion) | - |
221 | { | - |
222 | } executed: } Execution Count:3576 | 3576 |
223 | | - |
224 | | - |
225 | | - |
226 | | - |
227 | QExposeEvent::~QExposeEvent() | - |
228 | { | - |
229 | } | - |
230 | QResizeEvent::QResizeEvent(const QSize &size, const QSize &oldSize) | - |
231 | : QEvent(Resize), s(size), olds(oldSize) | - |
232 | {} executed: } Execution Count:18004 | 18004 |
233 | | - |
234 | | - |
235 | | - |
236 | | - |
237 | QResizeEvent::~QResizeEvent() | - |
238 | { | - |
239 | } | - |
240 | QCloseEvent::QCloseEvent() | - |
241 | : QEvent(Close) | - |
242 | {} executed: } Execution Count:98 | 98 |
243 | | - |
244 | | - |
245 | | - |
246 | QCloseEvent::~QCloseEvent() | - |
247 | { | - |
248 | } | - |
249 | QIconDragEvent::QIconDragEvent() | - |
250 | : QEvent(IconDrag) | - |
251 | { ignore(); } | 0 |
252 | | - |
253 | | - |
254 | QIconDragEvent::~QIconDragEvent() | - |
255 | { | - |
256 | } | - |
257 | QContextMenuEvent::QContextMenuEvent(Reason reason, const QPoint &pos, const QPoint &globalPos) | - |
258 | : QInputEvent(ContextMenu), p(pos), gp(globalPos), reas(reason) | - |
259 | {} executed: } Execution Count:200 | 200 |
260 | QContextMenuEvent::QContextMenuEvent(Reason reason, const QPoint &pos, const QPoint &globalPos, | - |
261 | Qt::KeyboardModifiers modifiers) | - |
262 | : QInputEvent(ContextMenu, modifiers), p(pos), gp(globalPos), reas(reason) | - |
263 | {} executed: } Execution Count:305 | 305 |
264 | | - |
265 | | - |
266 | | - |
267 | QContextMenuEvent::~QContextMenuEvent() | - |
268 | { | - |
269 | } | - |
270 | QContextMenuEvent::QContextMenuEvent(Reason reason, const QPoint &pos) | - |
271 | : QInputEvent(ContextMenu), p(pos), reas(reason) | - |
272 | { | - |
273 | gp = QCursor::pos(); | - |
274 | } executed: } Execution Count:5 | 5 |
275 | QInputMethodEvent::QInputMethodEvent() | - |
276 | : QEvent(QEvent::InputMethod), replace_from(0), replace_length(0) | - |
277 | { | - |
278 | } executed: } Execution Count:83 | 83 |
279 | QInputMethodEvent::QInputMethodEvent(const QString &preeditText, const QList<Attribute> &attributes) | - |
280 | : QEvent(QEvent::InputMethod), preedit(preeditText), attrs(attributes), | - |
281 | replace_from(0), replace_length(0) | - |
282 | { | - |
283 | } executed: } Execution Count:3 | 3 |
284 | | - |
285 | | - |
286 | | - |
287 | | - |
288 | QInputMethodEvent::QInputMethodEvent(const QInputMethodEvent &other) | - |
289 | : QEvent(QEvent::InputMethod), preedit(other.preedit), attrs(other.attrs), | - |
290 | commit(other.commit), replace_from(other.replace_from), replace_length(other.replace_length) | - |
291 | { | - |
292 | } | 0 |
293 | void QInputMethodEvent::setCommitString(const QString &commitString, int replaceFrom, int replaceLength) | - |
294 | { | - |
295 | commit = commitString; | - |
296 | replace_from = replaceFrom; | - |
297 | replace_length = replaceLength; | - |
298 | } executed: } Execution Count:83 | 83 |
299 | QInputMethodQueryEvent::QInputMethodQueryEvent(Qt::InputMethodQueries queries) | - |
300 | : QEvent(InputMethodQuery), | - |
301 | m_queries(queries) | - |
302 | { | - |
303 | } executed: } Execution Count:6843 | 6843 |
304 | | - |
305 | | - |
306 | | - |
307 | | - |
308 | QInputMethodQueryEvent::~QInputMethodQueryEvent() | - |
309 | { | - |
310 | } | - |
311 | | - |
312 | | - |
313 | | - |
314 | | - |
315 | void QInputMethodQueryEvent::setValue(Qt::InputMethodQuery query, const QVariant &value) | - |
316 | { | - |
317 | for (int i = 0; i < m_values.size(); ++i) { evaluated: i < m_values.size() yes Evaluation Count:2 | yes Evaluation Count:3952 |
| 2-3952 |
318 | if (m_values.at(i).query == query) { evaluated: m_values.at(i).query == query yes Evaluation Count:1 | yes Evaluation Count:1 |
| 1 |
319 | m_values[i].value = value; | - |
320 | return; executed: return; Execution Count:1 | 1 |
321 | } | - |
322 | } executed: } Execution Count:1 | 1 |
323 | QueryPair pair = { query, value }; | - |
324 | m_values.append(pair); | - |
325 | } executed: } Execution Count:3952 | 3952 |
326 | | - |
327 | | - |
328 | | - |
329 | | - |
330 | QVariant QInputMethodQueryEvent::value(Qt::InputMethodQuery query) const | - |
331 | { | - |
332 | for (int i = 0; i < m_values.size(); ++i) evaluated: i < m_values.size() yes Evaluation Count:3954 | yes Evaluation Count:2892 |
| 2892-3954 |
333 | if (m_values.at(i).query == query) evaluated: m_values.at(i).query == query yes Evaluation Count:3953 | yes Evaluation Count:1 |
| 1-3953 |
334 | return m_values.at(i).value; executed: return m_values.at(i).value; Execution Count:3953 | 3953 |
335 | return QVariant(); executed: return QVariant(); Execution Count:2892 | 2892 |
336 | } | - |
337 | QTabletEvent::QTabletEvent(Type type, const QPointF &pos, const QPointF &globalPos, | - |
338 | int device, int pointerType, | - |
339 | qreal pressure, int xTilt, int yTilt, qreal tangentialPressure, | - |
340 | qreal rotation, int z, Qt::KeyboardModifiers keyState, qint64 uniqueID) | - |
341 | : QInputEvent(type, keyState), | - |
342 | mPos(pos), | - |
343 | mGPos(globalPos), | - |
344 | mDev(device), | - |
345 | mPointerType(pointerType), | - |
346 | mXT(xTilt), | - |
347 | mYT(yTilt), | - |
348 | mZ(z), | - |
349 | mPress(pressure), | - |
350 | mTangential(tangentialPressure), | - |
351 | mRot(rotation), | - |
352 | mUnique(uniqueID), | - |
353 | mExtra(0) | - |
354 | { | - |
355 | } executed: } Execution Count:4 | 4 |
356 | | - |
357 | | - |
358 | | - |
359 | | - |
360 | QTabletEvent::~QTabletEvent() | - |
361 | { | - |
362 | } | - |
363 | QDragMoveEvent::QDragMoveEvent(const QPoint& pos, Qt::DropActions actions, const QMimeData *data, | - |
364 | Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Type type) | - |
365 | : QDropEvent(pos, actions, data, buttons, modifiers, type) | - |
366 | , rect(pos, QSize(1, 1)) | - |
367 | {} executed: } Execution Count:23 | 23 |
368 | | - |
369 | | - |
370 | | - |
371 | | - |
372 | QDragMoveEvent::~QDragMoveEvent() | - |
373 | { | - |
374 | } | - |
375 | QDropEvent::QDropEvent(const QPointF& pos, Qt::DropActions actions, const QMimeData *data, | - |
376 | Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Type type) | - |
377 | : QEvent(type), p(pos), mouseState(buttons), | - |
378 | modState(modifiers), act(actions), | - |
379 | mdata(data) | - |
380 | { | - |
381 | default_action = QGuiApplicationPrivate::platformIntegration()->drag()->defaultAction(act, modifiers); | - |
382 | drop_action = default_action; | - |
383 | ignore(); | - |
384 | } executed: } Execution Count:27 | 27 |
385 | | - |
386 | | - |
387 | QDropEvent::~QDropEvent() | - |
388 | { | - |
389 | } | - |
390 | QObject* QDropEvent::source() const | - |
391 | { | - |
392 | if (const QDragManager *manager = QDragManager::self()) never evaluated: const QDragManager *manager = QDragManager::self() | 0 |
393 | return manager->source(); never executed: return manager->source(); | 0 |
394 | return 0; never executed: return 0; | 0 |
395 | } | - |
396 | | - |
397 | | - |
398 | void QDropEvent::setDropAction(Qt::DropAction action) | - |
399 | { | - |
400 | if (!(action & act) && action != Qt::IgnoreAction) partially evaluated: !(action & act) no Evaluation Count:0 | yes Evaluation Count:15 |
never evaluated: action != Qt::IgnoreAction | 0-15 |
401 | action = default_action; never executed: action = default_action; | 0 |
402 | drop_action = action; | - |
403 | } executed: } Execution Count:15 | 15 |
404 | QDragEnterEvent::QDragEnterEvent(const QPoint& point, Qt::DropActions actions, const QMimeData *data, | - |
405 | Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) | - |
406 | : QDragMoveEvent(point, actions, data, buttons, modifiers, DragEnter) | - |
407 | {} executed: } Execution Count:5 | 5 |
408 | | - |
409 | | - |
410 | | - |
411 | QDragEnterEvent::~QDragEnterEvent() | - |
412 | { | - |
413 | } | - |
414 | QDragLeaveEvent::QDragLeaveEvent() | - |
415 | : QEvent(DragLeave) | - |
416 | {} executed: } Execution Count:1 | 1 |
417 | | - |
418 | | - |
419 | | - |
420 | QDragLeaveEvent::~QDragLeaveEvent() | - |
421 | { | - |
422 | } | - |
423 | QHelpEvent::QHelpEvent(Type type, const QPoint &pos, const QPoint &globalPos) | - |
424 | : QEvent(type), p(pos), gp(globalPos) | - |
425 | {} executed: } Execution Count:6 | 6 |
426 | QHelpEvent::~QHelpEvent() | - |
427 | { | - |
428 | } | - |
429 | QStatusTipEvent::QStatusTipEvent(const QString &tip) | - |
430 | : QEvent(StatusTip), s(tip) | - |
431 | {} executed: } Execution Count:128 | 128 |
432 | | - |
433 | | - |
434 | | - |
435 | QStatusTipEvent::~QStatusTipEvent() | - |
436 | { | - |
437 | } | - |
438 | QWhatsThisClickedEvent::QWhatsThisClickedEvent(const QString &href) | - |
439 | : QEvent(WhatsThisClicked), s(href) | - |
440 | {} | 0 |
441 | | - |
442 | | - |
443 | | - |
444 | QWhatsThisClickedEvent::~QWhatsThisClickedEvent() | - |
445 | { | - |
446 | } | - |
447 | QActionEvent::QActionEvent(int type, QAction *action, QAction *before) | - |
448 | : QEvent(static_cast<QEvent::Type>(type)), act(action), bef(before) | - |
449 | {} executed: } Execution Count:13955 | 13955 |
450 | | - |
451 | | - |
452 | | - |
453 | QActionEvent::~QActionEvent() | - |
454 | { | - |
455 | } | - |
456 | QHideEvent::QHideEvent() | - |
457 | : QEvent(Hide) | - |
458 | {} executed: } Execution Count:17250 | 17250 |
459 | | - |
460 | | - |
461 | | - |
462 | QHideEvent::~QHideEvent() | - |
463 | { | - |
464 | } | - |
465 | QShowEvent::QShowEvent() | - |
466 | : QEvent(Show) | - |
467 | {} executed: } Execution Count:18354 | 18354 |
468 | | - |
469 | | - |
470 | | - |
471 | QShowEvent::~QShowEvent() | - |
472 | { | - |
473 | } | - |
474 | QFileOpenEvent::QFileOpenEvent(const QString &file) | - |
475 | : QEvent(FileOpen), f(file), m_url(QUrl::fromLocalFile(file)) | - |
476 | { | - |
477 | } executed: } Execution Count:5 | 5 |
478 | | - |
479 | | - |
480 | | - |
481 | | - |
482 | | - |
483 | | - |
484 | QFileOpenEvent::QFileOpenEvent(const QUrl &url) | - |
485 | : QEvent(FileOpen), f(url.toLocalFile()), m_url(url) | - |
486 | { | - |
487 | } executed: } Execution Count:2 | 2 |
488 | | - |
489 | | - |
490 | | - |
491 | | - |
492 | QFileOpenEvent::~QFileOpenEvent() | - |
493 | { | - |
494 | } | - |
495 | bool QFileOpenEvent::openFile(QFile &file, QIODevice::OpenMode flags) const | - |
496 | { | - |
497 | file.setFileName(f); | - |
498 | return file.open(flags); executed: return file.open(flags); Execution Count:13 | 13 |
499 | } | - |
500 | QToolBarChangeEvent::QToolBarChangeEvent(bool t) | - |
501 | : QEvent(ToolBarChange), tog(t) | - |
502 | {} | 0 |
503 | | - |
504 | | - |
505 | | - |
506 | QToolBarChangeEvent::~QToolBarChangeEvent() | - |
507 | { | - |
508 | } | - |
509 | QShortcutEvent::QShortcutEvent(const QKeySequence &key, int id, bool ambiguous) | - |
510 | : QEvent(Shortcut), sequence(key), ambig(ambiguous), sid(id) | - |
511 | { | - |
512 | } executed: } Execution Count:116 | 116 |
513 | | - |
514 | | - |
515 | | - |
516 | | - |
517 | QShortcutEvent::~QShortcutEvent() | - |
518 | { | - |
519 | } | - |
520 | | - |
521 | | - |
522 | | - |
523 | | - |
524 | QDebug operator<<(QDebug dbg, const QEvent *e) { | - |
525 | | - |
526 | if (!e) | 0 |
527 | return dbg << "QEvent(this = 0x0)"; never executed: return dbg << "QEvent(this = 0x0)"; | 0 |
528 | const char *n = 0; | - |
529 | switch (e->type()) { | - |
530 | case QEvent::Timer: | - |
531 | n = "Timer"; | - |
532 | break; | 0 |
533 | case QEvent::MouseButtonPress: | - |
534 | case QEvent::MouseMove: | - |
535 | case QEvent::MouseButtonRelease: | - |
536 | case QEvent::MouseButtonDblClick: | - |
537 | { | - |
538 | const QMouseEvent *me = static_cast<const QMouseEvent*>(e); | - |
539 | switch(me->type()) { | - |
540 | case QEvent::MouseButtonPress: | - |
541 | n = "MouseButtonPress"; | - |
542 | break; | 0 |
543 | case QEvent::MouseMove: | - |
544 | n = "MouseMove"; | - |
545 | break; | 0 |
546 | case QEvent::MouseButtonRelease: | - |
547 | n = "MouseButtonRelease"; | - |
548 | break; | 0 |
549 | case QEvent::MouseButtonDblClick: | - |
550 | default: | - |
551 | n = "MouseButtonDblClick"; | - |
552 | break; | 0 |
553 | } | - |
554 | dbg.nospace() << "QMouseEvent(" << n | - |
555 | << ", " << me->button() | - |
556 | << ", " << hex << (int)me->buttons() | - |
557 | << ", " << hex << (int)me->modifiers() | - |
558 | << ')'; | - |
559 | } | - |
560 | return dbg.space(); never executed: return dbg.space(); | 0 |
561 | | - |
562 | | - |
563 | case QEvent::ToolTip: | - |
564 | n = "ToolTip"; | - |
565 | break; | 0 |
566 | | - |
567 | case QEvent::WindowActivate: | - |
568 | n = "WindowActivate"; | - |
569 | break; | 0 |
570 | case QEvent::WindowDeactivate: | - |
571 | n = "WindowDeactivate"; | - |
572 | break; | 0 |
573 | case QEvent::ActivationChange: | - |
574 | n = "ActivationChange"; | - |
575 | break; | 0 |
576 | | - |
577 | case QEvent::Wheel: | - |
578 | dbg.nospace() << "QWheelEvent(" | - |
579 | << static_cast<const QWheelEvent *>(e)->pixelDelta() | - |
580 | << static_cast<const QWheelEvent *>(e)->angleDelta() | - |
581 | << ')'; | - |
582 | return dbg.space(); never executed: return dbg.space(); | 0 |
583 | | - |
584 | case QEvent::KeyPress: | - |
585 | case QEvent::KeyRelease: | - |
586 | case QEvent::ShortcutOverride: | - |
587 | { | - |
588 | const QKeyEvent *ke = static_cast<const QKeyEvent*>(e); | - |
589 | switch(ke->type()) { | - |
590 | case QEvent::ShortcutOverride: | - |
591 | n = "ShortcutOverride"; | - |
592 | break; | 0 |
593 | case QEvent::KeyRelease: | - |
594 | n = "KeyRelease"; | - |
595 | break; | 0 |
596 | case QEvent::KeyPress: | - |
597 | default: | - |
598 | n = "KeyPress"; | - |
599 | break; | 0 |
600 | } | - |
601 | dbg.nospace() << "QKeyEvent(" << n | - |
602 | << ", " << hex << ke->key() | - |
603 | << ", " << hex << (int)ke->modifiers() | - |
604 | << ", \"" << ke->text() | - |
605 | << "\", " << ke->isAutoRepeat() | - |
606 | << ", " << ke->count() | - |
607 | << ')'; | - |
608 | } | - |
609 | return dbg.space(); never executed: return dbg.space(); | 0 |
610 | case QEvent::FocusIn: | - |
611 | n = "FocusIn"; | - |
612 | break; | 0 |
613 | case QEvent::FocusOut: | - |
614 | n = "FocusOut"; | - |
615 | break; | 0 |
616 | case QEvent::Enter: | - |
617 | n = "Enter"; | - |
618 | break; | 0 |
619 | case QEvent::Leave: | - |
620 | n = "Leave"; | - |
621 | break; | 0 |
622 | case QEvent::PaletteChange: | - |
623 | n = "PaletteChange"; | - |
624 | break; | 0 |
625 | case QEvent::PolishRequest: | - |
626 | n = "PolishRequest"; | - |
627 | break; | 0 |
628 | case QEvent::Polish: | - |
629 | n = "Polish"; | - |
630 | break; | 0 |
631 | case QEvent::UpdateRequest: | - |
632 | n = "UpdateRequest"; | - |
633 | break; | 0 |
634 | case QEvent::Paint: | - |
635 | n = "Paint"; | - |
636 | break; | 0 |
637 | case QEvent::Move: | - |
638 | n = "Move"; | - |
639 | break; | 0 |
640 | case QEvent::Resize: | - |
641 | n = "Resize"; | - |
642 | break; | 0 |
643 | case QEvent::Create: | - |
644 | n = "Create"; | - |
645 | break; | 0 |
646 | case QEvent::Destroy: | - |
647 | n = "Destroy"; | - |
648 | break; | 0 |
649 | case QEvent::Close: | - |
650 | n = "Close"; | - |
651 | break; | 0 |
652 | case QEvent::Quit: | - |
653 | n = "Quit"; | - |
654 | break; | 0 |
655 | case QEvent::FileOpen: | - |
656 | n = "FileOpen"; | - |
657 | break; | 0 |
658 | case QEvent::Show: | - |
659 | n = "Show"; | - |
660 | break; | 0 |
661 | case QEvent::ShowToParent: | - |
662 | n = "ShowToParent"; | - |
663 | break; | 0 |
664 | case QEvent::Hide: | - |
665 | n = "Hide"; | - |
666 | break; | 0 |
667 | case QEvent::HideToParent: | - |
668 | n = "HideToParent"; | - |
669 | break; | 0 |
670 | case QEvent::None: | - |
671 | n = "None"; | - |
672 | break; | 0 |
673 | case QEvent::ParentChange: | - |
674 | n = "ParentChange"; | - |
675 | break; | 0 |
676 | case QEvent::ParentAboutToChange: | - |
677 | n = "ParentAboutToChange"; | - |
678 | break; | 0 |
679 | case QEvent::HoverEnter: | - |
680 | n = "HoverEnter"; | - |
681 | break; | 0 |
682 | case QEvent::HoverMove: | - |
683 | n = "HoverMove"; | - |
684 | break; | 0 |
685 | case QEvent::HoverLeave: | - |
686 | n = "HoverLeave"; | - |
687 | break; | 0 |
688 | case QEvent::ZOrderChange: | - |
689 | n = "ZOrderChange"; | - |
690 | break; | 0 |
691 | case QEvent::StyleChange: | - |
692 | n = "StyleChange"; | - |
693 | break; | 0 |
694 | case QEvent::DragEnter: | - |
695 | n = "DragEnter"; | - |
696 | break; | 0 |
697 | case QEvent::DragMove: | - |
698 | n = "DragMove"; | - |
699 | break; | 0 |
700 | case QEvent::DragLeave: | - |
701 | n = "DragLeave"; | - |
702 | break; | 0 |
703 | case QEvent::Drop: | - |
704 | n = "Drop"; | - |
705 | break; | 0 |
706 | case QEvent::GraphicsSceneMouseMove: | - |
707 | n = "GraphicsSceneMouseMove"; | - |
708 | break; | 0 |
709 | case QEvent::GraphicsSceneMousePress: | - |
710 | n = "GraphicsSceneMousePress"; | - |
711 | break; | 0 |
712 | case QEvent::GraphicsSceneMouseRelease: | - |
713 | n = "GraphicsSceneMouseRelease"; | - |
714 | break; | 0 |
715 | case QEvent::GraphicsSceneMouseDoubleClick: | - |
716 | n = "GraphicsSceneMouseDoubleClick"; | - |
717 | break; | 0 |
718 | case QEvent::GraphicsSceneContextMenu: | - |
719 | n = "GraphicsSceneContextMenu"; | - |
720 | break; | 0 |
721 | case QEvent::GraphicsSceneHoverEnter: | - |
722 | n = "GraphicsSceneHoverEnter"; | - |
723 | break; | 0 |
724 | case QEvent::GraphicsSceneHoverMove: | - |
725 | n = "GraphicsSceneHoverMove"; | - |
726 | break; | 0 |
727 | case QEvent::GraphicsSceneHoverLeave: | - |
728 | n = "GraphicsSceneHoverLeave"; | - |
729 | break; | 0 |
730 | case QEvent::GraphicsSceneHelp: | - |
731 | n = "GraphicsSceneHelp"; | - |
732 | break; | 0 |
733 | case QEvent::GraphicsSceneDragEnter: | - |
734 | n = "GraphicsSceneDragEnter"; | - |
735 | break; | 0 |
736 | case QEvent::GraphicsSceneDragMove: | - |
737 | n = "GraphicsSceneDragMove"; | - |
738 | break; | 0 |
739 | case QEvent::GraphicsSceneDragLeave: | - |
740 | n = "GraphicsSceneDragLeave"; | - |
741 | break; | 0 |
742 | case QEvent::GraphicsSceneDrop: | - |
743 | n = "GraphicsSceneDrop"; | - |
744 | break; | 0 |
745 | case QEvent::GraphicsSceneWheel: | - |
746 | n = "GraphicsSceneWheel"; | - |
747 | break; | 0 |
748 | case QEvent::GraphicsSceneResize: | - |
749 | n = "GraphicsSceneResize"; | - |
750 | break; | 0 |
751 | case QEvent::GraphicsSceneMove: | - |
752 | n = "GraphicsSceneMove"; | - |
753 | break; | 0 |
754 | case QEvent::CursorChange: | - |
755 | n = "CursorChange"; | - |
756 | break; | 0 |
757 | case QEvent::ToolTipChange: | - |
758 | n = "ToolTipChange"; | - |
759 | break; | 0 |
760 | case QEvent::StatusTip: | - |
761 | n = "StatusTip"; | - |
762 | break; | 0 |
763 | case QEvent::WhatsThis: | - |
764 | n = "WhatsThis"; | - |
765 | break; | 0 |
766 | case QEvent::FontChange: | - |
767 | n = "FontChange"; | - |
768 | break; | 0 |
769 | case QEvent::Style: | - |
770 | n = "Style"; | - |
771 | break; | 0 |
772 | case QEvent::KeyboardLayoutChange: | - |
773 | n = "KeyboardLayoutChange"; | - |
774 | break; | 0 |
775 | case QEvent::DynamicPropertyChange: | - |
776 | n = "DynamicPropertyChange"; | - |
777 | break; | 0 |
778 | case QEvent::GrabMouse: | - |
779 | n = "GrabMouse"; | - |
780 | break; | 0 |
781 | case QEvent::UngrabMouse: | - |
782 | n = "UngrabMouse"; | - |
783 | break; | 0 |
784 | case QEvent::GrabKeyboard: | - |
785 | n = "GrabKeyboard"; | - |
786 | break; | 0 |
787 | case QEvent::UngrabKeyboard: | - |
788 | n = "UngrabKeyboard"; | - |
789 | break; | 0 |
790 | case QEvent::ChildAdded: n = n ? n : "ChildAdded"; | 0 |
791 | case QEvent::ChildPolished: n = n ? n : "ChildPolished"; code before this statement never executed: case QEvent::ChildPolished: | 0 |
792 | case QEvent::ChildRemoved: n = n ? n : "ChildRemoved"; code before this statement never executed: case QEvent::ChildRemoved: | 0 |
793 | dbg.nospace() << "QChildEvent(" << n << ", " << (static_cast<const QChildEvent*>(e))->child(); | - |
794 | return dbg.space(); never executed: return dbg.space(); | 0 |
795 | | - |
796 | case QEvent::Gesture: | - |
797 | n = "Gesture"; | - |
798 | break; | 0 |
799 | | - |
800 | default: | - |
801 | dbg.nospace() << "QEvent(" << (const void *)e << ", type = " << e->type() << ')'; | - |
802 | return dbg.space(); never executed: return dbg.space(); | 0 |
803 | } | - |
804 | | - |
805 | dbg.nospace() << 'Q' << n << "Event(" << (const void *)e << ')'; | - |
806 | return dbg.space(); never executed: return dbg.space(); | 0 |
807 | } | - |
808 | QWindowStateChangeEvent::QWindowStateChangeEvent(Qt::WindowStates s, bool isOverride) | - |
809 | : QEvent(WindowStateChange), ostate(s), m_override(isOverride) | - |
810 | { | - |
811 | } executed: } Execution Count:3670 | 3670 |
812 | | - |
813 | | - |
814 | | - |
815 | bool QWindowStateChangeEvent::isOverride() const | - |
816 | { | - |
817 | return m_override; executed: return m_override; Execution Count:2048 | 2048 |
818 | } | - |
819 | | - |
820 | | - |
821 | | - |
822 | QWindowStateChangeEvent::~QWindowStateChangeEvent() | - |
823 | { | - |
824 | } | - |
825 | QTouchEvent::QTouchEvent(QEvent::Type eventType, | - |
826 | QTouchDevice *device, | - |
827 | Qt::KeyboardModifiers modifiers, | - |
828 | Qt::TouchPointStates touchPointStates, | - |
829 | const QList<QTouchEvent::TouchPoint> &touchPoints) | - |
830 | : QInputEvent(eventType, modifiers), | - |
831 | _window(0), | - |
832 | _target(0), | - |
833 | _device(device), | - |
834 | _touchPointStates(touchPointStates), | - |
835 | _touchPoints(touchPoints) | - |
836 | { } executed: } Execution Count:104 | 104 |
837 | | - |
838 | | - |
839 | | - |
840 | | - |
841 | QTouchEvent::~QTouchEvent() | - |
842 | { } | - |
843 | QTouchEvent::TouchPoint::TouchPoint(int id) | - |
844 | : d(new QTouchEventTouchPointPrivate(id)) | - |
845 | { } executed: } Execution Count:177 | 177 |
846 | | - |
847 | | - |
848 | | - |
849 | | - |
850 | | - |
851 | | - |
852 | | - |
853 | QTouchEvent::TouchPoint::TouchPoint(const QTouchEvent::TouchPoint &other) | - |
854 | : d(other.d) | - |
855 | { | - |
856 | d->ref.ref(); | - |
857 | } executed: } Execution Count:566 | 566 |
858 | | - |
859 | | - |
860 | | - |
861 | | - |
862 | | - |
863 | | - |
864 | QTouchEvent::TouchPoint::~TouchPoint() | - |
865 | { | - |
866 | if (d && !d->ref.deref()) partially evaluated: d yes Evaluation Count:743 | no Evaluation Count:0 |
evaluated: !d->ref.deref() yes Evaluation Count:291 | yes Evaluation Count:452 |
| 0-743 |
867 | delete d; executed: delete d; Execution Count:291 | 291 |
868 | } executed: } Execution Count:743 | 743 |
869 | | - |
870 | | - |
871 | | - |
872 | | - |
873 | | - |
874 | | - |
875 | | - |
876 | int QTouchEvent::TouchPoint::id() const | - |
877 | { | - |
878 | return d->id; executed: return d->id; Execution Count:170 | 170 |
879 | } | - |
880 | | - |
881 | | - |
882 | | - |
883 | | - |
884 | Qt::TouchPointState QTouchEvent::TouchPoint::state() const | - |
885 | { | - |
886 | return Qt::TouchPointState(int(d->state)); executed: return Qt::TouchPointState(int(d->state)); Execution Count:376 | 376 |
887 | } | - |
888 | | - |
889 | | - |
890 | | - |
891 | | - |
892 | | - |
893 | | - |
894 | | - |
895 | QPointF QTouchEvent::TouchPoint::pos() const | - |
896 | { | - |
897 | return d->rect.center(); executed: return d->rect.center(); Execution Count:39 | 39 |
898 | } | - |
899 | QPointF QTouchEvent::TouchPoint::scenePos() const | - |
900 | { | - |
901 | return d->sceneRect.center(); executed: return d->sceneRect.center(); Execution Count:21 | 21 |
902 | } | - |
903 | | - |
904 | | - |
905 | | - |
906 | | - |
907 | | - |
908 | | - |
909 | QPointF QTouchEvent::TouchPoint::screenPos() const | - |
910 | { | - |
911 | return d->screenRect.center(); executed: return d->screenRect.center(); Execution Count:200 | 200 |
912 | } | - |
913 | QPointF QTouchEvent::TouchPoint::normalizedPos() const | - |
914 | { | - |
915 | return d->normalizedPos; executed: return d->normalizedPos; Execution Count:119 | 119 |
916 | } | - |
917 | | - |
918 | | - |
919 | | - |
920 | | - |
921 | | - |
922 | | - |
923 | | - |
924 | QPointF QTouchEvent::TouchPoint::startPos() const | - |
925 | { | - |
926 | return d->startPos; executed: return d->startPos; Execution Count:36 | 36 |
927 | } | - |
928 | QPointF QTouchEvent::TouchPoint::startScenePos() const | - |
929 | { | - |
930 | return d->startScenePos; never executed: return d->startScenePos; | 0 |
931 | } | - |
932 | | - |
933 | | - |
934 | | - |
935 | | - |
936 | | - |
937 | | - |
938 | QPointF QTouchEvent::TouchPoint::startScreenPos() const | - |
939 | { | - |
940 | return d->startScreenPos; executed: return d->startScreenPos; Execution Count:149 | 149 |
941 | } | - |
942 | QPointF QTouchEvent::TouchPoint::startNormalizedPos() const | - |
943 | { | - |
944 | return d->startNormalizedPos; executed: return d->startNormalizedPos; Execution Count:30 | 30 |
945 | } | - |
946 | | - |
947 | | - |
948 | | - |
949 | | - |
950 | | - |
951 | | - |
952 | | - |
953 | QPointF QTouchEvent::TouchPoint::lastPos() const | - |
954 | { | - |
955 | return d->lastPos; executed: return d->lastPos; Execution Count:6 | 6 |
956 | } | - |
957 | QPointF QTouchEvent::TouchPoint::lastScenePos() const | - |
958 | { | - |
959 | return d->lastScenePos; never executed: return d->lastScenePos; | 0 |
960 | } | - |
961 | | - |
962 | | - |
963 | | - |
964 | | - |
965 | | - |
966 | | - |
967 | | - |
968 | QPointF QTouchEvent::TouchPoint::lastScreenPos() const | - |
969 | { | - |
970 | return d->lastScreenPos; executed: return d->lastScreenPos; Execution Count:119 | 119 |
971 | } | - |
972 | QPointF QTouchEvent::TouchPoint::lastNormalizedPos() const | - |
973 | { | - |
974 | return d->lastNormalizedPos; never executed: return d->lastNormalizedPos; | 0 |
975 | } | - |
976 | QRectF QTouchEvent::TouchPoint::rect() const | - |
977 | { | - |
978 | return d->rect; executed: return d->rect; Execution Count:6 | 6 |
979 | } | - |
980 | QRectF QTouchEvent::TouchPoint::sceneRect() const | - |
981 | { | - |
982 | return d->sceneRect; never executed: return d->sceneRect; | 0 |
983 | } | - |
984 | QRectF QTouchEvent::TouchPoint::screenRect() const | - |
985 | { | - |
986 | return d->screenRect; executed: return d->screenRect; Execution Count:178 | 178 |
987 | } | - |
988 | | - |
989 | | - |
990 | | - |
991 | | - |
992 | | - |
993 | qreal QTouchEvent::TouchPoint::pressure() const | - |
994 | { | - |
995 | return d->pressure; executed: return d->pressure; Execution Count:89 | 89 |
996 | } | - |
997 | QVector2D QTouchEvent::TouchPoint::velocity() const | - |
998 | { | - |
999 | return d->velocity; executed: return d->velocity; Execution Count:29 | 29 |
1000 | } | - |
1001 | | - |
1002 | | - |
1003 | | - |
1004 | | - |
1005 | | - |
1006 | | - |
1007 | QTouchEvent::TouchPoint::InfoFlags QTouchEvent::TouchPoint::flags() const | - |
1008 | { | - |
1009 | return d->flags; executed: return d->flags; Execution Count:29 | 29 |
1010 | } | - |
1011 | QVector<QPointF> QTouchEvent::TouchPoint::rawScreenPositions() const | - |
1012 | { | - |
1013 | return d->rawScreenPositions; executed: return d->rawScreenPositions; Execution Count:29 | 29 |
1014 | } | - |
1015 | | - |
1016 | | - |
1017 | void QTouchEvent::TouchPoint::setId(int id) | - |
1018 | { | - |
1019 | if (d->ref.load() != 1) evaluated: d->ref.load() != 1 yes Evaluation Count:9 | yes Evaluation Count:60 |
| 9-60 |
1020 | d = d->detach(); executed: d = d->detach(); Execution Count:9 | 9 |
1021 | d->id = id; | - |
1022 | } executed: } Execution Count:69 | 69 |
1023 | | - |
1024 | | - |
1025 | void QTouchEvent::TouchPoint::setState(Qt::TouchPointStates state) | - |
1026 | { | - |
1027 | if (d->ref.load() != 1) partially evaluated: d->ref.load() != 1 no Evaluation Count:0 | yes Evaluation Count:80 |
| 0-80 |
1028 | d = d->detach(); never executed: d = d->detach(); | 0 |
1029 | d->state = state; | - |
1030 | } executed: } Execution Count:80 | 80 |
1031 | | - |
1032 | | - |
1033 | void QTouchEvent::TouchPoint::setPos(const QPointF &pos) | - |
1034 | { | - |
1035 | if (d->ref.load() != 1) evaluated: d->ref.load() != 1 yes Evaluation Count:14 | yes Evaluation Count:7 |
| 7-14 |
1036 | d = d->detach(); executed: d = d->detach(); Execution Count:14 | 14 |
1037 | d->rect.moveCenter(pos); | - |
1038 | } executed: } Execution Count:21 | 21 |
1039 | | - |
1040 | | - |
1041 | void QTouchEvent::TouchPoint::setScenePos(const QPointF &scenePos) | - |
1042 | { | - |
1043 | if (d->ref.load() != 1) partially evaluated: d->ref.load() != 1 no Evaluation Count:0 | yes Evaluation Count:21 |
| 0-21 |
1044 | d = d->detach(); never executed: d = d->detach(); | 0 |
1045 | d->sceneRect.moveCenter(scenePos); | - |
1046 | } executed: } Execution Count:21 | 21 |
1047 | | - |
1048 | | - |
1049 | void QTouchEvent::TouchPoint::setScreenPos(const QPointF &screenPos) | - |
1050 | { | - |
1051 | if (d->ref.load() != 1) evaluated: d->ref.load() != 1 yes Evaluation Count:2 | yes Evaluation Count:94 |
| 2-94 |
1052 | d = d->detach(); executed: d = d->detach(); Execution Count:2 | 2 |
1053 | d->screenRect.moveCenter(screenPos); | - |
1054 | } executed: } Execution Count:96 | 96 |
1055 | | - |
1056 | | - |
1057 | void QTouchEvent::TouchPoint::setNormalizedPos(const QPointF &normalizedPos) | - |
1058 | { | - |
1059 | if (d->ref.load() != 1) partially evaluated: d->ref.load() != 1 no Evaluation Count:0 | yes Evaluation Count:62 |
| 0-62 |
1060 | d = d->detach(); never executed: d = d->detach(); | 0 |
1061 | d->normalizedPos = normalizedPos; | - |
1062 | } executed: } Execution Count:62 | 62 |
1063 | | - |
1064 | | - |
1065 | void QTouchEvent::TouchPoint::setStartPos(const QPointF &startPos) | - |
1066 | { | - |
1067 | if (d->ref.load() != 1) never evaluated: d->ref.load() != 1 | 0 |
1068 | d = d->detach(); never executed: d = d->detach(); | 0 |
1069 | d->startPos = startPos; | - |
1070 | } | 0 |
1071 | | - |
1072 | | - |
1073 | void QTouchEvent::TouchPoint::setStartScenePos(const QPointF &startScenePos) | - |
1074 | { | - |
1075 | if (d->ref.load() != 1) never evaluated: d->ref.load() != 1 | 0 |
1076 | d = d->detach(); never executed: d = d->detach(); | 0 |
1077 | d->startScenePos = startScenePos; | - |
1078 | } | 0 |
1079 | | - |
1080 | | - |
1081 | void QTouchEvent::TouchPoint::setStartScreenPos(const QPointF &startScreenPos) | - |
1082 | { | - |
1083 | if (d->ref.load() != 1) never evaluated: d->ref.load() != 1 | 0 |
1084 | d = d->detach(); never executed: d = d->detach(); | 0 |
1085 | d->startScreenPos = startScreenPos; | - |
1086 | } | 0 |
1087 | | - |
1088 | | - |
1089 | void QTouchEvent::TouchPoint::setStartNormalizedPos(const QPointF &startNormalizedPos) | - |
1090 | { | - |
1091 | if (d->ref.load() != 1) never evaluated: d->ref.load() != 1 | 0 |
1092 | d = d->detach(); never executed: d = d->detach(); | 0 |
1093 | d->startNormalizedPos = startNormalizedPos; | - |
1094 | } | 0 |
1095 | | - |
1096 | | - |
1097 | void QTouchEvent::TouchPoint::setLastPos(const QPointF &lastPos) | - |
1098 | { | - |
1099 | if (d->ref.load() != 1) never evaluated: d->ref.load() != 1 | 0 |
1100 | d = d->detach(); never executed: d = d->detach(); | 0 |
1101 | d->lastPos = lastPos; | - |
1102 | } | 0 |
1103 | | - |
1104 | | - |
1105 | void QTouchEvent::TouchPoint::setLastScenePos(const QPointF &lastScenePos) | - |
1106 | { | - |
1107 | if (d->ref.load() != 1) never evaluated: d->ref.load() != 1 | 0 |
1108 | d = d->detach(); never executed: d = d->detach(); | 0 |
1109 | d->lastScenePos = lastScenePos; | - |
1110 | } | 0 |
1111 | | - |
1112 | | - |
1113 | void QTouchEvent::TouchPoint::setLastScreenPos(const QPointF &lastScreenPos) | - |
1114 | { | - |
1115 | if (d->ref.load() != 1) never evaluated: d->ref.load() != 1 | 0 |
1116 | d = d->detach(); never executed: d = d->detach(); | 0 |
1117 | d->lastScreenPos = lastScreenPos; | - |
1118 | } | 0 |
1119 | | - |
1120 | | - |
1121 | void QTouchEvent::TouchPoint::setLastNormalizedPos(const QPointF &lastNormalizedPos) | - |
1122 | { | - |
1123 | if (d->ref.load() != 1) never evaluated: d->ref.load() != 1 | 0 |
1124 | d = d->detach(); never executed: d = d->detach(); | 0 |
1125 | d->lastNormalizedPos = lastNormalizedPos; | - |
1126 | } | 0 |
1127 | | - |
1128 | | - |
1129 | void QTouchEvent::TouchPoint::setRect(const QRectF &rect) | - |
1130 | { | - |
1131 | if (d->ref.load() != 1) never evaluated: d->ref.load() != 1 | 0 |
1132 | d = d->detach(); never executed: d = d->detach(); | 0 |
1133 | d->rect = rect; | - |
1134 | } | 0 |
1135 | | - |
1136 | | - |
1137 | void QTouchEvent::TouchPoint::setSceneRect(const QRectF &sceneRect) | - |
1138 | { | - |
1139 | if (d->ref.load() != 1) never evaluated: d->ref.load() != 1 | 0 |
1140 | d = d->detach(); never executed: d = d->detach(); | 0 |
1141 | d->sceneRect = sceneRect; | - |
1142 | } | 0 |
1143 | | - |
1144 | | - |
1145 | void QTouchEvent::TouchPoint::setScreenRect(const QRectF &screenRect) | - |
1146 | { | - |
1147 | if (d->ref.load() != 1) partially evaluated: d->ref.load() != 1 no Evaluation Count:0 | yes Evaluation Count:62 |
| 0-62 |
1148 | d = d->detach(); never executed: d = d->detach(); | 0 |
1149 | d->screenRect = screenRect; | - |
1150 | } executed: } Execution Count:62 | 62 |
1151 | | - |
1152 | | - |
1153 | void QTouchEvent::TouchPoint::setPressure(qreal pressure) | - |
1154 | { | - |
1155 | if (d->ref.load() != 1) partially evaluated: d->ref.load() != 1 no Evaluation Count:0 | yes Evaluation Count:62 |
| 0-62 |
1156 | d = d->detach(); never executed: d = d->detach(); | 0 |
1157 | d->pressure = pressure; | - |
1158 | } executed: } Execution Count:62 | 62 |
1159 | | - |
1160 | | - |
1161 | void QTouchEvent::TouchPoint::setVelocity(const QVector2D &v) | - |
1162 | { | - |
1163 | if (d->ref.load() != 1) partially evaluated: d->ref.load() != 1 no Evaluation Count:0 | yes Evaluation Count:62 |
| 0-62 |
1164 | d = d->detach(); never executed: d = d->detach(); | 0 |
1165 | d->velocity = v; | - |
1166 | } executed: } Execution Count:62 | 62 |
1167 | | - |
1168 | | - |
1169 | void QTouchEvent::TouchPoint::setRawScreenPositions(const QVector<QPointF> &positions) | - |
1170 | { | - |
1171 | if (d->ref.load() != 1) partially evaluated: d->ref.load() != 1 no Evaluation Count:0 | yes Evaluation Count:62 |
| 0-62 |
1172 | d = d->detach(); never executed: d = d->detach(); | 0 |
1173 | d->rawScreenPositions = positions; | - |
1174 | } executed: } Execution Count:62 | 62 |
1175 | | - |
1176 | | - |
1177 | | - |
1178 | | - |
1179 | void QTouchEvent::TouchPoint::setFlags(InfoFlags flags) | - |
1180 | { | - |
1181 | if (d->ref.load() != 1) partially evaluated: d->ref.load() != 1 no Evaluation Count:0 | yes Evaluation Count:62 |
| 0-62 |
1182 | d = d->detach(); never executed: d = d->detach(); | 0 |
1183 | d->flags = flags; | - |
1184 | } executed: } Execution Count:62 | 62 |
1185 | QScrollPrepareEvent::QScrollPrepareEvent(const QPointF &startPos) | - |
1186 | : QEvent(QEvent::ScrollPrepare), m_target(0), m_startPos(startPos) | - |
1187 | { | - |
1188 | } executed: } Execution Count:8 | 8 |
1189 | | - |
1190 | | - |
1191 | | - |
1192 | | - |
1193 | QScrollPrepareEvent::~QScrollPrepareEvent() | - |
1194 | { | - |
1195 | } | - |
1196 | | - |
1197 | | - |
1198 | | - |
1199 | | - |
1200 | QPointF QScrollPrepareEvent::startPos() const | - |
1201 | { | - |
1202 | return m_startPos; never executed: return m_startPos; | 0 |
1203 | } | - |
1204 | | - |
1205 | | - |
1206 | | - |
1207 | | - |
1208 | | - |
1209 | | - |
1210 | QSizeF QScrollPrepareEvent::viewportSize() const | - |
1211 | { | - |
1212 | return m_viewportSize; executed: return m_viewportSize; Execution Count:8 | 8 |
1213 | } | - |
1214 | | - |
1215 | | - |
1216 | | - |
1217 | | - |
1218 | QRectF QScrollPrepareEvent::contentPosRange() const | - |
1219 | { | - |
1220 | return m_contentPosRange; executed: return m_contentPosRange; Execution Count:8 | 8 |
1221 | } | - |
1222 | | - |
1223 | | - |
1224 | | - |
1225 | | - |
1226 | QPointF QScrollPrepareEvent::contentPos() const | - |
1227 | { | - |
1228 | return m_contentPos; executed: return m_contentPos; Execution Count:24 | 24 |
1229 | } | - |
1230 | | - |
1231 | | - |
1232 | | - |
1233 | | - |
1234 | | - |
1235 | | - |
1236 | | - |
1237 | void QScrollPrepareEvent::setViewportSize(const QSizeF &size) | - |
1238 | { | - |
1239 | m_viewportSize = size; | - |
1240 | } executed: } Execution Count:8 | 8 |
1241 | | - |
1242 | | - |
1243 | | - |
1244 | | - |
1245 | | - |
1246 | | - |
1247 | void QScrollPrepareEvent::setContentPosRange(const QRectF &rect) | - |
1248 | { | - |
1249 | m_contentPosRange = rect; | - |
1250 | } executed: } Execution Count:8 | 8 |
1251 | | - |
1252 | | - |
1253 | | - |
1254 | | - |
1255 | | - |
1256 | | - |
1257 | void QScrollPrepareEvent::setContentPos(const QPointF &pos) | - |
1258 | { | - |
1259 | m_contentPos = pos; | - |
1260 | } executed: } Execution Count:8 | 8 |
1261 | QScrollEvent::QScrollEvent(const QPointF &contentPos, const QPointF &overshootDistance, ScrollState scrollState) | - |
1262 | : QEvent(QEvent::Scroll), m_contentPos(contentPos), m_overshoot(overshootDistance), m_state(scrollState) | - |
1263 | { | - |
1264 | } executed: } Execution Count:143 | 143 |
1265 | | - |
1266 | | - |
1267 | | - |
1268 | | - |
1269 | QScrollEvent::~QScrollEvent() | - |
1270 | { | - |
1271 | } | - |
1272 | | - |
1273 | | - |
1274 | | - |
1275 | | - |
1276 | QPointF QScrollEvent::contentPos() const | - |
1277 | { | - |
1278 | return m_contentPos; executed: return m_contentPos; Execution Count:143 | 143 |
1279 | } | - |
1280 | | - |
1281 | | - |
1282 | | - |
1283 | | - |
1284 | | - |
1285 | | - |
1286 | | - |
1287 | QPointF QScrollEvent::overshootDistance() const | - |
1288 | { | - |
1289 | return m_overshoot; executed: return m_overshoot; Execution Count:143 | 143 |
1290 | } | - |
1291 | QScrollEvent::ScrollState QScrollEvent::scrollState() const | - |
1292 | { | - |
1293 | return m_state; executed: return m_state; Execution Count:286 | 286 |
1294 | } | - |
1295 | | - |
1296 | | - |
1297 | | - |
1298 | | - |
1299 | | - |
1300 | QScreenOrientationChangeEvent::QScreenOrientationChangeEvent(QScreen *screen, Qt::ScreenOrientation screenOrientation) | - |
1301 | : QEvent(QEvent::OrientationChange), m_screen(screen), m_orientation(screenOrientation) | - |
1302 | { | - |
1303 | } executed: } Execution Count:4 | 4 |
1304 | | - |
1305 | | - |
1306 | | - |
1307 | | - |
1308 | QScreenOrientationChangeEvent::~QScreenOrientationChangeEvent() | - |
1309 | { | - |
1310 | } | - |
1311 | | - |
1312 | | - |
1313 | | - |
1314 | | - |
1315 | QScreen *QScreenOrientationChangeEvent::screen() const | - |
1316 | { | - |
1317 | return m_screen; never executed: return m_screen; | 0 |
1318 | } | - |
1319 | | - |
1320 | | - |
1321 | | - |
1322 | | - |
1323 | Qt::ScreenOrientation QScreenOrientationChangeEvent::orientation() const | - |
1324 | { | - |
1325 | return m_orientation; never executed: return m_orientation; | 0 |
1326 | } | - |
1327 | | - |
1328 | | - |
1329 | | - |
| | |