Line | Source Code | Coverage |
---|
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | class QGraphicsSceneEventPrivate | - |
11 | { | - |
12 | public: | - |
13 | inline QGraphicsSceneEventPrivate() | - |
14 | : widget(0), | - |
15 | q_ptr(0) | - |
16 | { } executed: } Execution Count:3153 | 3153 |
17 | | - |
18 | inline virtual ~QGraphicsSceneEventPrivate() | - |
19 | { } | - |
20 | | - |
21 | QWidget *widget; | - |
22 | QGraphicsSceneEvent *q_ptr; | - |
23 | }; | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | QGraphicsSceneEvent::QGraphicsSceneEvent(Type type) | - |
31 | : QEvent(type), d_ptr(new QGraphicsSceneEventPrivate) | - |
32 | { | - |
33 | d_ptr->q_ptr = this; | - |
34 | } | 0 |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | QGraphicsSceneEvent::QGraphicsSceneEvent(QGraphicsSceneEventPrivate &dd, Type type) | - |
42 | : QEvent(type), d_ptr(&dd) | - |
43 | { | - |
44 | d_ptr->q_ptr = this; | - |
45 | } executed: } Execution Count:3153 | 3153 |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
50 | QGraphicsSceneEvent::~QGraphicsSceneEvent() | - |
51 | { | - |
52 | } | - |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | QWidget *QGraphicsSceneEvent::widget() const | - |
59 | { | - |
60 | return d_ptr->widget; executed: return d_ptr->widget; Execution Count:2119 | 2119 |
61 | } | - |
62 | void QGraphicsSceneEvent::setWidget(QWidget *widget) | - |
63 | { | - |
64 | d_ptr->widget = widget; | - |
65 | } executed: } Execution Count:651 | 651 |
66 | | - |
67 | class QGraphicsSceneMouseEventPrivate : public QGraphicsSceneEventPrivate | - |
68 | { | - |
69 | inline QGraphicsSceneMouseEvent* q_func() { return static_cast<QGraphicsSceneMouseEvent *>(q_ptr); } inline const QGraphicsSceneMouseEvent* q_func() const { return static_cast<const QGraphicsSceneMouseEvent *>(q_ptr); } friend class QGraphicsSceneMouseEvent; | - |
70 | public: | - |
71 | inline QGraphicsSceneMouseEventPrivate() | - |
72 | : button(Qt::NoButton), | - |
73 | buttons(0), modifiers(0) | - |
74 | { } executed: } Execution Count:287 | 287 |
75 | | - |
76 | QPointF pos; | - |
77 | QPointF scenePos; | - |
78 | QPoint screenPos; | - |
79 | QPointF lastPos; | - |
80 | QPointF lastScenePos; | - |
81 | QPoint lastScreenPos; | - |
82 | QMap<Qt::MouseButton, QPointF> buttonDownPos; | - |
83 | QMap<Qt::MouseButton, QPointF> buttonDownScenePos; | - |
84 | QMap<Qt::MouseButton, QPoint> buttonDownScreenPos; | - |
85 | Qt::MouseButton button; | - |
86 | Qt::MouseButtons buttons; | - |
87 | Qt::KeyboardModifiers modifiers; | - |
88 | }; | - |
89 | | - |
90 | | - |
91 | | - |
92 | | - |
93 | | - |
94 | | - |
95 | QGraphicsSceneMouseEvent::QGraphicsSceneMouseEvent(Type type) | - |
96 | : QGraphicsSceneEvent(*new QGraphicsSceneMouseEventPrivate, type) | - |
97 | { | - |
98 | } executed: } Execution Count:287 | 287 |
99 | | - |
100 | | - |
101 | | - |
102 | | - |
103 | QGraphicsSceneMouseEvent::~QGraphicsSceneMouseEvent() | - |
104 | { | - |
105 | } | - |
106 | | - |
107 | | - |
108 | | - |
109 | | - |
110 | | - |
111 | | - |
112 | QPointF QGraphicsSceneMouseEvent::pos() const | - |
113 | { | - |
114 | const QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
115 | return d->pos; executed: return d->pos; Execution Count:262 | 262 |
116 | } | - |
117 | | - |
118 | | - |
119 | | - |
120 | | - |
121 | void QGraphicsSceneMouseEvent::setPos(const QPointF &pos) | - |
122 | { | - |
123 | QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
124 | d->pos = pos; | - |
125 | } executed: } Execution Count:212 | 212 |
126 | | - |
127 | | - |
128 | | - |
129 | | - |
130 | | - |
131 | | - |
132 | QPointF QGraphicsSceneMouseEvent::scenePos() const | - |
133 | { | - |
134 | const QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
135 | return d->scenePos; executed: return d->scenePos; Execution Count:2854 | 2854 |
136 | } | - |
137 | | - |
138 | | - |
139 | | - |
140 | | - |
141 | void QGraphicsSceneMouseEvent::setScenePos(const QPointF &pos) | - |
142 | { | - |
143 | QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
144 | d->scenePos = pos; | - |
145 | } executed: } Execution Count:286 | 286 |
146 | | - |
147 | | - |
148 | | - |
149 | | - |
150 | | - |
151 | | - |
152 | QPoint QGraphicsSceneMouseEvent::screenPos() const | - |
153 | { | - |
154 | const QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
155 | return d->screenPos; executed: return d->screenPos; Execution Count:1528 | 1528 |
156 | } | - |
157 | | - |
158 | | - |
159 | | - |
160 | | - |
161 | void QGraphicsSceneMouseEvent::setScreenPos(const QPoint &pos) | - |
162 | { | - |
163 | QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
164 | d->screenPos = pos; | - |
165 | } executed: } Execution Count:286 | 286 |
166 | | - |
167 | | - |
168 | | - |
169 | | - |
170 | | - |
171 | | - |
172 | | - |
173 | QPointF QGraphicsSceneMouseEvent::buttonDownPos(Qt::MouseButton button) const | - |
174 | { | - |
175 | const QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
176 | return d->buttonDownPos.value(button); executed: return d->buttonDownPos.value(button); Execution Count:2 | 2 |
177 | } | - |
178 | | - |
179 | | - |
180 | | - |
181 | | - |
182 | void QGraphicsSceneMouseEvent::setButtonDownPos(Qt::MouseButton button, const QPointF &pos) | - |
183 | { | - |
184 | QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
185 | d->buttonDownPos.insert(button, pos); | - |
186 | } executed: } Execution Count:1057 | 1057 |
187 | | - |
188 | | - |
189 | | - |
190 | | - |
191 | | - |
192 | | - |
193 | | - |
194 | QPointF QGraphicsSceneMouseEvent::buttonDownScenePos(Qt::MouseButton button) const | - |
195 | { | - |
196 | const QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
197 | return d->buttonDownScenePos.value(button); executed: return d->buttonDownScenePos.value(button); Execution Count:1 | 1 |
198 | } | - |
199 | | - |
200 | | - |
201 | | - |
202 | | - |
203 | void QGraphicsSceneMouseEvent::setButtonDownScenePos(Qt::MouseButton button, const QPointF &pos) | - |
204 | { | - |
205 | QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
206 | d->buttonDownScenePos.insert(button, pos); | - |
207 | } executed: } Execution Count:1340 | 1340 |
208 | | - |
209 | | - |
210 | | - |
211 | | - |
212 | | - |
213 | | - |
214 | | - |
215 | QPoint QGraphicsSceneMouseEvent::buttonDownScreenPos(Qt::MouseButton button) const | - |
216 | { | - |
217 | const QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
218 | return d->buttonDownScreenPos.value(button); executed: return d->buttonDownScreenPos.value(button); Execution Count:2 | 2 |
219 | } | - |
220 | | - |
221 | | - |
222 | | - |
223 | | - |
224 | void QGraphicsSceneMouseEvent::setButtonDownScreenPos(Qt::MouseButton button, const QPoint &pos) | - |
225 | { | - |
226 | QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
227 | d->buttonDownScreenPos.insert(button, pos); | - |
228 | } executed: } Execution Count:1342 | 1342 |
229 | | - |
230 | | - |
231 | | - |
232 | | - |
233 | | - |
234 | | - |
235 | | - |
236 | QPointF QGraphicsSceneMouseEvent::lastPos() const | - |
237 | { | - |
238 | const QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
239 | return d->lastPos; executed: return d->lastPos; Execution Count:262 | 262 |
240 | } | - |
241 | | - |
242 | | - |
243 | | - |
244 | | - |
245 | void QGraphicsSceneMouseEvent::setLastPos(const QPointF &pos) | - |
246 | { | - |
247 | QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
248 | d->lastPos = pos; | - |
249 | } executed: } Execution Count:212 | 212 |
250 | QPointF QGraphicsSceneMouseEvent::lastScenePos() const | - |
251 | { | - |
252 | const QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
253 | return d->lastScenePos; executed: return d->lastScenePos; Execution Count:473 | 473 |
254 | } | - |
255 | | - |
256 | | - |
257 | | - |
258 | | - |
259 | void QGraphicsSceneMouseEvent::setLastScenePos(const QPointF &pos) | - |
260 | { | - |
261 | QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
262 | d->lastScenePos = pos; | - |
263 | } executed: } Execution Count:286 | 286 |
264 | QPoint QGraphicsSceneMouseEvent::lastScreenPos() const | - |
265 | { | - |
266 | const QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
267 | return d->lastScreenPos; executed: return d->lastScreenPos; Execution Count:262 | 262 |
268 | } | - |
269 | | - |
270 | | - |
271 | | - |
272 | | - |
273 | void QGraphicsSceneMouseEvent::setLastScreenPos(const QPoint &pos) | - |
274 | { | - |
275 | QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
276 | d->lastScreenPos = pos; | - |
277 | } executed: } Execution Count:286 | 286 |
278 | | - |
279 | | - |
280 | | - |
281 | | - |
282 | | - |
283 | | - |
284 | | - |
285 | Qt::MouseButtons QGraphicsSceneMouseEvent::buttons() const | - |
286 | { | - |
287 | const QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
288 | return d->buttons; executed: return d->buttons; Execution Count:896 | 896 |
289 | } | - |
290 | | - |
291 | | - |
292 | | - |
293 | | - |
294 | void QGraphicsSceneMouseEvent::setButtons(Qt::MouseButtons buttons) | - |
295 | { | - |
296 | QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
297 | d->buttons = buttons; | - |
298 | } executed: } Execution Count:286 | 286 |
299 | | - |
300 | | - |
301 | | - |
302 | | - |
303 | | - |
304 | | - |
305 | Qt::MouseButton QGraphicsSceneMouseEvent::button() const | - |
306 | { | - |
307 | const QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
308 | return d->button; executed: return d->button; Execution Count:420 | 420 |
309 | } | - |
310 | | - |
311 | | - |
312 | | - |
313 | | - |
314 | void QGraphicsSceneMouseEvent::setButton(Qt::MouseButton button) | - |
315 | { | - |
316 | QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
317 | d->button = button; | - |
318 | } executed: } Execution Count:286 | 286 |
319 | | - |
320 | | - |
321 | | - |
322 | | - |
323 | | - |
324 | | - |
325 | | - |
326 | Qt::KeyboardModifiers QGraphicsSceneMouseEvent::modifiers() const | - |
327 | { | - |
328 | const QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
329 | return d->modifiers; executed: return d->modifiers; Execution Count:262 | 262 |
330 | } | - |
331 | | - |
332 | | - |
333 | | - |
334 | | - |
335 | void QGraphicsSceneMouseEvent::setModifiers(Qt::KeyboardModifiers modifiers) | - |
336 | { | - |
337 | QGraphicsSceneMouseEventPrivate * const d = d_func(); | - |
338 | d->modifiers = modifiers; | - |
339 | } executed: } Execution Count:286 | 286 |
340 | | - |
341 | class QGraphicsSceneWheelEventPrivate : public QGraphicsSceneEventPrivate | - |
342 | { | - |
343 | inline QGraphicsSceneWheelEvent* q_func() { return static_cast<QGraphicsSceneWheelEvent *>(q_ptr); } inline const QGraphicsSceneWheelEvent* q_func() const { return static_cast<const QGraphicsSceneWheelEvent *>(q_ptr); } friend class QGraphicsSceneWheelEvent; | - |
344 | public: | - |
345 | inline QGraphicsSceneWheelEventPrivate() | - |
346 | : buttons(0), modifiers(0), delta(0), orientation(Qt::Horizontal) | - |
347 | { } executed: } Execution Count:2 | 2 |
348 | | - |
349 | QPointF pos; | - |
350 | QPointF scenePos; | - |
351 | QPoint screenPos; | - |
352 | Qt::MouseButtons buttons; | - |
353 | Qt::KeyboardModifiers modifiers; | - |
354 | int delta; | - |
355 | Qt::Orientation orientation; | - |
356 | }; | - |
357 | | - |
358 | | - |
359 | | - |
360 | | - |
361 | | - |
362 | | - |
363 | | - |
364 | QGraphicsSceneWheelEvent::QGraphicsSceneWheelEvent(Type type) | - |
365 | : QGraphicsSceneEvent(*new QGraphicsSceneWheelEventPrivate, type) | - |
366 | { | - |
367 | } executed: } Execution Count:2 | 2 |
368 | | - |
369 | | - |
370 | | - |
371 | | - |
372 | QGraphicsSceneWheelEvent::~QGraphicsSceneWheelEvent() | - |
373 | { | - |
374 | } | - |
375 | | - |
376 | | - |
377 | | - |
378 | | - |
379 | | - |
380 | | - |
381 | | - |
382 | QPointF QGraphicsSceneWheelEvent::pos() const | - |
383 | { | - |
384 | const QGraphicsSceneWheelEventPrivate * const d = d_func(); | - |
385 | return d->pos; never executed: return d->pos; | 0 |
386 | } | - |
387 | | - |
388 | | - |
389 | | - |
390 | | - |
391 | void QGraphicsSceneWheelEvent::setPos(const QPointF &pos) | - |
392 | { | - |
393 | QGraphicsSceneWheelEventPrivate * const d = d_func(); | - |
394 | d->pos = pos; | - |
395 | } executed: } Execution Count:2 | 2 |
396 | | - |
397 | | - |
398 | | - |
399 | | - |
400 | | - |
401 | | - |
402 | | - |
403 | QPointF QGraphicsSceneWheelEvent::scenePos() const | - |
404 | { | - |
405 | const QGraphicsSceneWheelEventPrivate * const d = d_func(); | - |
406 | return d->scenePos; executed: return d->scenePos; Execution Count:4 | 4 |
407 | } | - |
408 | | - |
409 | | - |
410 | | - |
411 | | - |
412 | void QGraphicsSceneWheelEvent::setScenePos(const QPointF &pos) | - |
413 | { | - |
414 | QGraphicsSceneWheelEventPrivate * const d = d_func(); | - |
415 | d->scenePos = pos; | - |
416 | } executed: } Execution Count:2 | 2 |
417 | | - |
418 | | - |
419 | | - |
420 | | - |
421 | | - |
422 | | - |
423 | | - |
424 | QPoint QGraphicsSceneWheelEvent::screenPos() const | - |
425 | { | - |
426 | const QGraphicsSceneWheelEventPrivate * const d = d_func(); | - |
427 | return d->screenPos; executed: return d->screenPos; Execution Count:2 | 2 |
428 | } | - |
429 | | - |
430 | | - |
431 | | - |
432 | | - |
433 | void QGraphicsSceneWheelEvent::setScreenPos(const QPoint &pos) | - |
434 | { | - |
435 | QGraphicsSceneWheelEventPrivate * const d = d_func(); | - |
436 | d->screenPos = pos; | - |
437 | } executed: } Execution Count:2 | 2 |
438 | | - |
439 | | - |
440 | | - |
441 | | - |
442 | | - |
443 | | - |
444 | Qt::MouseButtons QGraphicsSceneWheelEvent::buttons() const | - |
445 | { | - |
446 | const QGraphicsSceneWheelEventPrivate * const d = d_func(); | - |
447 | return d->buttons; never executed: return d->buttons; | 0 |
448 | } | - |
449 | | - |
450 | | - |
451 | | - |
452 | | - |
453 | void QGraphicsSceneWheelEvent::setButtons(Qt::MouseButtons buttons) | - |
454 | { | - |
455 | QGraphicsSceneWheelEventPrivate * const d = d_func(); | - |
456 | d->buttons = buttons; | - |
457 | } executed: } Execution Count:2 | 2 |
458 | | - |
459 | | - |
460 | | - |
461 | | - |
462 | | - |
463 | | - |
464 | | - |
465 | Qt::KeyboardModifiers QGraphicsSceneWheelEvent::modifiers() const | - |
466 | { | - |
467 | const QGraphicsSceneWheelEventPrivate * const d = d_func(); | - |
468 | return d->modifiers; never executed: return d->modifiers; | 0 |
469 | } | - |
470 | | - |
471 | | - |
472 | | - |
473 | | - |
474 | void QGraphicsSceneWheelEvent::setModifiers(Qt::KeyboardModifiers modifiers) | - |
475 | { | - |
476 | QGraphicsSceneWheelEventPrivate * const d = d_func(); | - |
477 | d->modifiers = modifiers; | - |
478 | } executed: } Execution Count:2 | 2 |
479 | int QGraphicsSceneWheelEvent::delta() const | - |
480 | { | - |
481 | const QGraphicsSceneWheelEventPrivate * const d = d_func(); | - |
482 | return d->delta; never executed: return d->delta; | 0 |
483 | } | - |
484 | | - |
485 | | - |
486 | | - |
487 | | - |
488 | void QGraphicsSceneWheelEvent::setDelta(int delta) | - |
489 | { | - |
490 | QGraphicsSceneWheelEventPrivate * const d = d_func(); | - |
491 | d->delta = delta; | - |
492 | } executed: } Execution Count:2 | 2 |
493 | | - |
494 | | - |
495 | | - |
496 | | - |
497 | Qt::Orientation QGraphicsSceneWheelEvent::orientation() const | - |
498 | { | - |
499 | const QGraphicsSceneWheelEventPrivate * const d = d_func(); | - |
500 | return d->orientation; executed: return d->orientation; Execution Count:2 | 2 |
501 | } | - |
502 | | - |
503 | | - |
504 | | - |
505 | | - |
506 | void QGraphicsSceneWheelEvent::setOrientation(Qt::Orientation orientation) | - |
507 | { | - |
508 | QGraphicsSceneWheelEventPrivate * const d = d_func(); | - |
509 | d->orientation = orientation; | - |
510 | } executed: } Execution Count:2 | 2 |
511 | | - |
512 | class QGraphicsSceneContextMenuEventPrivate : public QGraphicsSceneEventPrivate | - |
513 | { | - |
514 | inline QGraphicsSceneContextMenuEvent* q_func() { return static_cast<QGraphicsSceneContextMenuEvent *>(q_ptr); } inline const QGraphicsSceneContextMenuEvent* q_func() const { return static_cast<const QGraphicsSceneContextMenuEvent *>(q_ptr); } friend class QGraphicsSceneContextMenuEvent; | - |
515 | public: | - |
516 | inline QGraphicsSceneContextMenuEventPrivate() | - |
517 | : modifiers(0), reason(QGraphicsSceneContextMenuEvent::Other) | - |
518 | { } executed: } Execution Count:100 | 100 |
519 | | - |
520 | QPointF pos; | - |
521 | QPointF scenePos; | - |
522 | QPoint screenPos; | - |
523 | Qt::KeyboardModifiers modifiers; | - |
524 | QGraphicsSceneContextMenuEvent::Reason reason; | - |
525 | }; | - |
526 | | - |
527 | | - |
528 | | - |
529 | | - |
530 | | - |
531 | | - |
532 | QGraphicsSceneContextMenuEvent::QGraphicsSceneContextMenuEvent(Type type) | - |
533 | : QGraphicsSceneEvent(*new QGraphicsSceneContextMenuEventPrivate, type) | - |
534 | { | - |
535 | } executed: } Execution Count:100 | 100 |
536 | | - |
537 | | - |
538 | | - |
539 | | - |
540 | QGraphicsSceneContextMenuEvent::~QGraphicsSceneContextMenuEvent() | - |
541 | { | - |
542 | } | - |
543 | | - |
544 | | - |
545 | | - |
546 | | - |
547 | | - |
548 | | - |
549 | | - |
550 | QPointF QGraphicsSceneContextMenuEvent::pos() const | - |
551 | { | - |
552 | const QGraphicsSceneContextMenuEventPrivate * const d = d_func(); | - |
553 | return d->pos; never executed: return d->pos; | 0 |
554 | } | - |
555 | void QGraphicsSceneContextMenuEvent::setPos(const QPointF &pos) | - |
556 | { | - |
557 | QGraphicsSceneContextMenuEventPrivate * const d = d_func(); | - |
558 | d->pos = pos; | - |
559 | } executed: } Execution Count:100 | 100 |
560 | | - |
561 | | - |
562 | | - |
563 | | - |
564 | | - |
565 | | - |
566 | | - |
567 | QPointF QGraphicsSceneContextMenuEvent::scenePos() const | - |
568 | { | - |
569 | const QGraphicsSceneContextMenuEventPrivate * const d = d_func(); | - |
570 | return d->scenePos; executed: return d->scenePos; Execution Count:200 | 200 |
571 | } | - |
572 | void QGraphicsSceneContextMenuEvent::setScenePos(const QPointF &pos) | - |
573 | { | - |
574 | QGraphicsSceneContextMenuEventPrivate * const d = d_func(); | - |
575 | d->scenePos = pos; | - |
576 | } executed: } Execution Count:100 | 100 |
577 | | - |
578 | | - |
579 | | - |
580 | | - |
581 | | - |
582 | | - |
583 | | - |
584 | QPoint QGraphicsSceneContextMenuEvent::screenPos() const | - |
585 | { | - |
586 | const QGraphicsSceneContextMenuEventPrivate * const d = d_func(); | - |
587 | return d->screenPos; executed: return d->screenPos; Execution Count:100 | 100 |
588 | } | - |
589 | void QGraphicsSceneContextMenuEvent::setScreenPos(const QPoint &pos) | - |
590 | { | - |
591 | QGraphicsSceneContextMenuEventPrivate * const d = d_func(); | - |
592 | d->screenPos = pos; | - |
593 | } executed: } Execution Count:100 | 100 |
594 | | - |
595 | | - |
596 | | - |
597 | | - |
598 | Qt::KeyboardModifiers QGraphicsSceneContextMenuEvent::modifiers() const | - |
599 | { | - |
600 | const QGraphicsSceneContextMenuEventPrivate * const d = d_func(); | - |
601 | return d->modifiers; never executed: return d->modifiers; | 0 |
602 | } | - |
603 | | - |
604 | | - |
605 | | - |
606 | | - |
607 | | - |
608 | | - |
609 | | - |
610 | void QGraphicsSceneContextMenuEvent::setModifiers(Qt::KeyboardModifiers modifiers) | - |
611 | { | - |
612 | QGraphicsSceneContextMenuEventPrivate * const d = d_func(); | - |
613 | d->modifiers = modifiers; | - |
614 | } executed: } Execution Count:100 | 100 |
615 | | - |
616 | | - |
617 | | - |
618 | | - |
619 | | - |
620 | | - |
621 | QGraphicsSceneContextMenuEvent::Reason QGraphicsSceneContextMenuEvent::reason() const | - |
622 | { | - |
623 | const QGraphicsSceneContextMenuEventPrivate * const d = d_func(); | - |
624 | return d->reason; never executed: return d->reason; | 0 |
625 | } | - |
626 | | - |
627 | | - |
628 | | - |
629 | | - |
630 | | - |
631 | | - |
632 | | - |
633 | void QGraphicsSceneContextMenuEvent::setReason(Reason reason) | - |
634 | { | - |
635 | QGraphicsSceneContextMenuEventPrivate * const d = d_func(); | - |
636 | d->reason = reason; | - |
637 | } executed: } Execution Count:100 | 100 |
638 | | - |
639 | class QGraphicsSceneHoverEventPrivate : public QGraphicsSceneEventPrivate | - |
640 | { | - |
641 | public: | - |
642 | QPointF pos; | - |
643 | QPointF scenePos; | - |
644 | QPoint screenPos; | - |
645 | QPointF lastPos; | - |
646 | QPointF lastScenePos; | - |
647 | QPoint lastScreenPos; | - |
648 | Qt::KeyboardModifiers modifiers; | - |
649 | }; | - |
650 | | - |
651 | | - |
652 | | - |
653 | | - |
654 | | - |
655 | | - |
656 | QGraphicsSceneHoverEvent::QGraphicsSceneHoverEvent(Type type) | - |
657 | : QGraphicsSceneEvent(*new QGraphicsSceneHoverEventPrivate, type) | - |
658 | { | - |
659 | } executed: } Execution Count:265 | 265 |
660 | | - |
661 | | - |
662 | | - |
663 | | - |
664 | QGraphicsSceneHoverEvent::~QGraphicsSceneHoverEvent() | - |
665 | { | - |
666 | } | - |
667 | | - |
668 | | - |
669 | | - |
670 | | - |
671 | | - |
672 | | - |
673 | | - |
674 | QPointF QGraphicsSceneHoverEvent::pos() const | - |
675 | { | - |
676 | const QGraphicsSceneHoverEventPrivate * const d = d_func(); | - |
677 | return d->pos; never executed: return d->pos; | 0 |
678 | } | - |
679 | void QGraphicsSceneHoverEvent::setPos(const QPointF &pos) | - |
680 | { | - |
681 | QGraphicsSceneHoverEventPrivate * const d = d_func(); | - |
682 | d->pos = pos; | - |
683 | } executed: } Execution Count:261 | 261 |
684 | | - |
685 | | - |
686 | | - |
687 | | - |
688 | | - |
689 | | - |
690 | | - |
691 | QPointF QGraphicsSceneHoverEvent::scenePos() const | - |
692 | { | - |
693 | const QGraphicsSceneHoverEventPrivate * const d = d_func(); | - |
694 | return d->scenePos; executed: return d->scenePos; Execution Count:2 | 2 |
695 | } | - |
696 | void QGraphicsSceneHoverEvent::setScenePos(const QPointF &pos) | - |
697 | { | - |
698 | QGraphicsSceneHoverEventPrivate * const d = d_func(); | - |
699 | d->scenePos = pos; | - |
700 | } executed: } Execution Count:265 | 265 |
701 | | - |
702 | | - |
703 | | - |
704 | | - |
705 | | - |
706 | | - |
707 | | - |
708 | QPoint QGraphicsSceneHoverEvent::screenPos() const | - |
709 | { | - |
710 | const QGraphicsSceneHoverEventPrivate * const d = d_func(); | - |
711 | return d->screenPos; executed: return d->screenPos; Execution Count:2 | 2 |
712 | } | - |
713 | void QGraphicsSceneHoverEvent::setScreenPos(const QPoint &pos) | - |
714 | { | - |
715 | QGraphicsSceneHoverEventPrivate * const d = d_func(); | - |
716 | d->screenPos = pos; | - |
717 | } executed: } Execution Count:263 | 263 |
718 | QPointF QGraphicsSceneHoverEvent::lastPos() const | - |
719 | { | - |
720 | const QGraphicsSceneHoverEventPrivate * const d = d_func(); | - |
721 | return d->lastPos; never executed: return d->lastPos; | 0 |
722 | } | - |
723 | | - |
724 | | - |
725 | | - |
726 | | - |
727 | void QGraphicsSceneHoverEvent::setLastPos(const QPointF &pos) | - |
728 | { | - |
729 | QGraphicsSceneHoverEventPrivate * const d = d_func(); | - |
730 | d->lastPos = pos; | - |
731 | } executed: } Execution Count:261 | 261 |
732 | QPointF QGraphicsSceneHoverEvent::lastScenePos() const | - |
733 | { | - |
734 | const QGraphicsSceneHoverEventPrivate * const d = d_func(); | - |
735 | return d->lastScenePos; never executed: return d->lastScenePos; | 0 |
736 | } | - |
737 | | - |
738 | | - |
739 | | - |
740 | | - |
741 | void QGraphicsSceneHoverEvent::setLastScenePos(const QPointF &pos) | - |
742 | { | - |
743 | QGraphicsSceneHoverEventPrivate * const d = d_func(); | - |
744 | d->lastScenePos = pos; | - |
745 | } executed: } Execution Count:263 | 263 |
746 | QPoint QGraphicsSceneHoverEvent::lastScreenPos() const | - |
747 | { | - |
748 | const QGraphicsSceneHoverEventPrivate * const d = d_func(); | - |
749 | return d->lastScreenPos; never executed: return d->lastScreenPos; | 0 |
750 | } | - |
751 | | - |
752 | | - |
753 | | - |
754 | | - |
755 | void QGraphicsSceneHoverEvent::setLastScreenPos(const QPoint &pos) | - |
756 | { | - |
757 | QGraphicsSceneHoverEventPrivate * const d = d_func(); | - |
758 | d->lastScreenPos = pos; | - |
759 | } executed: } Execution Count:263 | 263 |
760 | | - |
761 | | - |
762 | | - |
763 | | - |
764 | | - |
765 | | - |
766 | Qt::KeyboardModifiers QGraphicsSceneHoverEvent::modifiers() const | - |
767 | { | - |
768 | const QGraphicsSceneHoverEventPrivate * const d = d_func(); | - |
769 | return d->modifiers; never executed: return d->modifiers; | 0 |
770 | } | - |
771 | | - |
772 | | - |
773 | | - |
774 | | - |
775 | | - |
776 | | - |
777 | | - |
778 | void QGraphicsSceneHoverEvent::setModifiers(Qt::KeyboardModifiers modifiers) | - |
779 | { | - |
780 | QGraphicsSceneHoverEventPrivate * const d = d_func(); | - |
781 | d->modifiers = modifiers; | - |
782 | } executed: } Execution Count:261 | 261 |
783 | | - |
784 | class QGraphicsSceneHelpEventPrivate : public QGraphicsSceneEventPrivate | - |
785 | { | - |
786 | public: | - |
787 | QPointF scenePos; | - |
788 | QPoint screenPos; | - |
789 | }; | - |
790 | | - |
791 | | - |
792 | | - |
793 | | - |
794 | | - |
795 | | - |
796 | QGraphicsSceneHelpEvent::QGraphicsSceneHelpEvent(Type type) | - |
797 | : QGraphicsSceneEvent(*new QGraphicsSceneHelpEventPrivate, type) | - |
798 | { | - |
799 | } | 0 |
800 | | - |
801 | | - |
802 | | - |
803 | | - |
804 | QGraphicsSceneHelpEvent::~QGraphicsSceneHelpEvent() | - |
805 | { | - |
806 | } | - |
807 | | - |
808 | | - |
809 | | - |
810 | | - |
811 | | - |
812 | | - |
813 | | - |
814 | QPointF QGraphicsSceneHelpEvent::scenePos() const | - |
815 | { | - |
816 | const QGraphicsSceneHelpEventPrivate * const d = d_func(); | - |
817 | return d->scenePos; never executed: return d->scenePos; | 0 |
818 | } | - |
819 | void QGraphicsSceneHelpEvent::setScenePos(const QPointF &pos) | - |
820 | { | - |
821 | QGraphicsSceneHelpEventPrivate * const d = d_func(); | - |
822 | d->scenePos = pos; | - |
823 | } | 0 |
824 | | - |
825 | | - |
826 | | - |
827 | | - |
828 | | - |
829 | | - |
830 | | - |
831 | QPoint QGraphicsSceneHelpEvent::screenPos() const | - |
832 | { | - |
833 | const QGraphicsSceneHelpEventPrivate * const d = d_func(); | - |
834 | return d->screenPos; never executed: return d->screenPos; | 0 |
835 | } | - |
836 | void QGraphicsSceneHelpEvent::setScreenPos(const QPoint &pos) | - |
837 | { | - |
838 | QGraphicsSceneHelpEventPrivate * const d = d_func(); | - |
839 | d->screenPos = pos; | - |
840 | } | 0 |
841 | | - |
842 | class QGraphicsSceneDragDropEventPrivate : public QGraphicsSceneEventPrivate | - |
843 | { | - |
844 | inline QGraphicsSceneDragDropEvent* q_func() { return static_cast<QGraphicsSceneDragDropEvent *>(q_ptr); } inline const QGraphicsSceneDragDropEvent* q_func() const { return static_cast<const QGraphicsSceneDragDropEvent *>(q_ptr); } friend class QGraphicsSceneDragDropEvent; | - |
845 | public: | - |
846 | inline QGraphicsSceneDragDropEventPrivate() | - |
847 | : source(0), mimeData(0) | - |
848 | { } | 0 |
849 | | - |
850 | QPointF pos; | - |
851 | QPointF scenePos; | - |
852 | QPoint screenPos; | - |
853 | Qt::MouseButtons buttons; | - |
854 | Qt::KeyboardModifiers modifiers; | - |
855 | Qt::DropActions possibleActions; | - |
856 | Qt::DropAction proposedAction; | - |
857 | Qt::DropAction dropAction; | - |
858 | QWidget *source; | - |
859 | const QMimeData *mimeData; | - |
860 | }; | - |
861 | QGraphicsSceneDragDropEvent::QGraphicsSceneDragDropEvent(Type type) | - |
862 | : QGraphicsSceneEvent(*new QGraphicsSceneDragDropEventPrivate, type) | - |
863 | { | - |
864 | } | 0 |
865 | | - |
866 | | - |
867 | | - |
868 | | - |
869 | QGraphicsSceneDragDropEvent::~QGraphicsSceneDragDropEvent() | - |
870 | { | - |
871 | } | - |
872 | | - |
873 | | - |
874 | | - |
875 | | - |
876 | | - |
877 | | - |
878 | | - |
879 | QPointF QGraphicsSceneDragDropEvent::pos() const | - |
880 | { | - |
881 | const QGraphicsSceneDragDropEventPrivate * const d = d_func(); | - |
882 | return d->pos; never executed: return d->pos; | 0 |
883 | } | - |
884 | void QGraphicsSceneDragDropEvent::setPos(const QPointF &pos) | - |
885 | { | - |
886 | QGraphicsSceneDragDropEventPrivate * const d = d_func(); | - |
887 | d->pos = pos; | - |
888 | } | 0 |
889 | | - |
890 | | - |
891 | | - |
892 | | - |
893 | | - |
894 | | - |
895 | QPointF QGraphicsSceneDragDropEvent::scenePos() const | - |
896 | { | - |
897 | const QGraphicsSceneDragDropEventPrivate * const d = d_func(); | - |
898 | return d->scenePos; never executed: return d->scenePos; | 0 |
899 | } | - |
900 | | - |
901 | | - |
902 | | - |
903 | | - |
904 | | - |
905 | | - |
906 | | - |
907 | void QGraphicsSceneDragDropEvent::setScenePos(const QPointF &pos) | - |
908 | { | - |
909 | QGraphicsSceneDragDropEventPrivate * const d = d_func(); | - |
910 | d->scenePos = pos; | - |
911 | } | 0 |
912 | | - |
913 | | - |
914 | | - |
915 | | - |
916 | | - |
917 | | - |
918 | QPoint QGraphicsSceneDragDropEvent::screenPos() const | - |
919 | { | - |
920 | const QGraphicsSceneDragDropEventPrivate * const d = d_func(); | - |
921 | return d->screenPos; never executed: return d->screenPos; | 0 |
922 | } | - |
923 | | - |
924 | | - |
925 | | - |
926 | | - |
927 | | - |
928 | | - |
929 | | - |
930 | void QGraphicsSceneDragDropEvent::setScreenPos(const QPoint &pos) | - |
931 | { | - |
932 | QGraphicsSceneDragDropEventPrivate * const d = d_func(); | - |
933 | d->screenPos = pos; | - |
934 | } | 0 |
935 | Qt::MouseButtons QGraphicsSceneDragDropEvent::buttons() const | - |
936 | { | - |
937 | const QGraphicsSceneDragDropEventPrivate * const d = d_func(); | - |
938 | return d->buttons; never executed: return d->buttons; | 0 |
939 | } | - |
940 | void QGraphicsSceneDragDropEvent::setButtons(Qt::MouseButtons buttons) | - |
941 | { | - |
942 | QGraphicsSceneDragDropEventPrivate * const d = d_func(); | - |
943 | d->buttons = buttons; | - |
944 | } | 0 |
945 | | - |
946 | | - |
947 | | - |
948 | | - |
949 | | - |
950 | | - |
951 | | - |
952 | Qt::KeyboardModifiers QGraphicsSceneDragDropEvent::modifiers() const | - |
953 | { | - |
954 | const QGraphicsSceneDragDropEventPrivate * const d = d_func(); | - |
955 | return d->modifiers; never executed: return d->modifiers; | 0 |
956 | } | - |
957 | void QGraphicsSceneDragDropEvent::setModifiers(Qt::KeyboardModifiers modifiers) | - |
958 | { | - |
959 | QGraphicsSceneDragDropEventPrivate * const d = d_func(); | - |
960 | d->modifiers = modifiers; | - |
961 | } | 0 |
962 | Qt::DropActions QGraphicsSceneDragDropEvent::possibleActions() const | - |
963 | { | - |
964 | const QGraphicsSceneDragDropEventPrivate * const d = d_func(); | - |
965 | return d->possibleActions; never executed: return d->possibleActions; | 0 |
966 | } | - |
967 | void QGraphicsSceneDragDropEvent::setPossibleActions(Qt::DropActions actions) | - |
968 | { | - |
969 | QGraphicsSceneDragDropEventPrivate * const d = d_func(); | - |
970 | d->possibleActions = actions; | - |
971 | } | 0 |
972 | Qt::DropAction QGraphicsSceneDragDropEvent::proposedAction() const | - |
973 | { | - |
974 | const QGraphicsSceneDragDropEventPrivate * const d = d_func(); | - |
975 | return d->proposedAction; never executed: return d->proposedAction; | 0 |
976 | } | - |
977 | void QGraphicsSceneDragDropEvent::setProposedAction(Qt::DropAction action) | - |
978 | { | - |
979 | QGraphicsSceneDragDropEventPrivate * const d = d_func(); | - |
980 | d->proposedAction = action; | - |
981 | } | 0 |
982 | void QGraphicsSceneDragDropEvent::acceptProposedAction() | - |
983 | { | - |
984 | QGraphicsSceneDragDropEventPrivate * const d = d_func(); | - |
985 | d->dropAction = d->proposedAction; | - |
986 | } | 0 |
987 | Qt::DropAction QGraphicsSceneDragDropEvent::dropAction() const | - |
988 | { | - |
989 | const QGraphicsSceneDragDropEventPrivate * const d = d_func(); | - |
990 | return d->dropAction; never executed: return d->dropAction; | 0 |
991 | } | - |
992 | void QGraphicsSceneDragDropEvent::setDropAction(Qt::DropAction action) | - |
993 | { | - |
994 | QGraphicsSceneDragDropEventPrivate * const d = d_func(); | - |
995 | d->dropAction = action; | - |
996 | } | 0 |
997 | | - |
998 | | - |
999 | | - |
1000 | | - |
1001 | | - |
1002 | QWidget *QGraphicsSceneDragDropEvent::source() const | - |
1003 | { | - |
1004 | const QGraphicsSceneDragDropEventPrivate * const d = d_func(); | - |
1005 | return d->source; never executed: return d->source; | 0 |
1006 | } | - |
1007 | | - |
1008 | | - |
1009 | | - |
1010 | | - |
1011 | | - |
1012 | | - |
1013 | void QGraphicsSceneDragDropEvent::setSource(QWidget *source) | - |
1014 | { | - |
1015 | QGraphicsSceneDragDropEventPrivate * const d = d_func(); | - |
1016 | d->source = source; | - |
1017 | } | 0 |
1018 | | - |
1019 | | - |
1020 | | - |
1021 | | - |
1022 | const QMimeData *QGraphicsSceneDragDropEvent::mimeData() const | - |
1023 | { | - |
1024 | const QGraphicsSceneDragDropEventPrivate * const d = d_func(); | - |
1025 | return d->mimeData; never executed: return d->mimeData; | 0 |
1026 | } | - |
1027 | | - |
1028 | | - |
1029 | | - |
1030 | | - |
1031 | | - |
1032 | void QGraphicsSceneDragDropEvent::setMimeData(const QMimeData *data) | - |
1033 | { | - |
1034 | QGraphicsSceneDragDropEventPrivate * const d = d_func(); | - |
1035 | d->mimeData = data; | - |
1036 | } | 0 |
1037 | | - |
1038 | class QGraphicsSceneResizeEventPrivate : public QGraphicsSceneEventPrivate | - |
1039 | { | - |
1040 | inline QGraphicsSceneResizeEvent* q_func() { return static_cast<QGraphicsSceneResizeEvent *>(q_ptr); } inline const QGraphicsSceneResizeEvent* q_func() const { return static_cast<const QGraphicsSceneResizeEvent *>(q_ptr); } friend class QGraphicsSceneResizeEvent; | - |
1041 | public: | - |
1042 | inline QGraphicsSceneResizeEventPrivate() | - |
1043 | { } | - |
1044 | | - |
1045 | QSizeF oldSize; | - |
1046 | QSizeF newSize; | - |
1047 | }; | - |
1048 | | - |
1049 | | - |
1050 | | - |
1051 | | - |
1052 | QGraphicsSceneResizeEvent::QGraphicsSceneResizeEvent() | - |
1053 | : QGraphicsSceneEvent(*new QGraphicsSceneResizeEventPrivate, QEvent::GraphicsSceneResize) | - |
1054 | { | - |
1055 | } executed: } Execution Count:1746 | 1746 |
1056 | | - |
1057 | | - |
1058 | | - |
1059 | | - |
1060 | QGraphicsSceneResizeEvent::~QGraphicsSceneResizeEvent() | - |
1061 | { | - |
1062 | } | - |
1063 | | - |
1064 | | - |
1065 | | - |
1066 | | - |
1067 | | - |
1068 | | - |
1069 | | - |
1070 | QSizeF QGraphicsSceneResizeEvent::oldSize() const | - |
1071 | { | - |
1072 | const QGraphicsSceneResizeEventPrivate * const d = d_func(); | - |
1073 | return d->oldSize; never executed: return d->oldSize; | 0 |
1074 | } | - |
1075 | | - |
1076 | | - |
1077 | | - |
1078 | | - |
1079 | void QGraphicsSceneResizeEvent::setOldSize(const QSizeF &size) | - |
1080 | { | - |
1081 | QGraphicsSceneResizeEventPrivate * const d = d_func(); | - |
1082 | d->oldSize = size; | - |
1083 | } executed: } Execution Count:1746 | 1746 |
1084 | | - |
1085 | | - |
1086 | | - |
1087 | | - |
1088 | | - |
1089 | | - |
1090 | QSizeF QGraphicsSceneResizeEvent::newSize() const | - |
1091 | { | - |
1092 | const QGraphicsSceneResizeEventPrivate * const d = d_func(); | - |
1093 | return d->newSize; executed: return d->newSize; Execution Count:3 | 3 |
1094 | } | - |
1095 | | - |
1096 | | - |
1097 | | - |
1098 | | - |
1099 | void QGraphicsSceneResizeEvent::setNewSize(const QSizeF &size) | - |
1100 | { | - |
1101 | QGraphicsSceneResizeEventPrivate * const d = d_func(); | - |
1102 | d->newSize = size; | - |
1103 | } executed: } Execution Count:1746 | 1746 |
1104 | | - |
1105 | class QGraphicsSceneMoveEventPrivate : public QGraphicsSceneEventPrivate | - |
1106 | { | - |
1107 | inline QGraphicsSceneMoveEvent* q_func() { return static_cast<QGraphicsSceneMoveEvent *>(q_ptr); } inline const QGraphicsSceneMoveEvent* q_func() const { return static_cast<const QGraphicsSceneMoveEvent *>(q_ptr); } friend class QGraphicsSceneMoveEvent; | - |
1108 | public: | - |
1109 | inline QGraphicsSceneMoveEventPrivate() | - |
1110 | { } | - |
1111 | | - |
1112 | QPointF oldPos; | - |
1113 | QPointF newPos; | - |
1114 | }; | - |
1115 | | - |
1116 | | - |
1117 | | - |
1118 | | - |
1119 | QGraphicsSceneMoveEvent::QGraphicsSceneMoveEvent() | - |
1120 | : QGraphicsSceneEvent(*new QGraphicsSceneMoveEventPrivate, QEvent::GraphicsSceneMove) | - |
1121 | { | - |
1122 | } executed: } Execution Count:753 | 753 |
1123 | | - |
1124 | | - |
1125 | | - |
1126 | | - |
1127 | QGraphicsSceneMoveEvent::~QGraphicsSceneMoveEvent() | - |
1128 | { | - |
1129 | } | - |
1130 | | - |
1131 | | - |
1132 | | - |
1133 | | - |
1134 | | - |
1135 | | - |
1136 | | - |
1137 | QPointF QGraphicsSceneMoveEvent::oldPos() const | - |
1138 | { | - |
1139 | const QGraphicsSceneMoveEventPrivate * const d = d_func(); | - |
1140 | return d->oldPos; never executed: return d->oldPos; | 0 |
1141 | } | - |
1142 | | - |
1143 | | - |
1144 | | - |
1145 | | - |
1146 | void QGraphicsSceneMoveEvent::setOldPos(const QPointF &pos) | - |
1147 | { | - |
1148 | QGraphicsSceneMoveEventPrivate * const d = d_func(); | - |
1149 | d->oldPos = pos; | - |
1150 | } executed: } Execution Count:753 | 753 |
1151 | | - |
1152 | | - |
1153 | | - |
1154 | | - |
1155 | | - |
1156 | | - |
1157 | QPointF QGraphicsSceneMoveEvent::newPos() const | - |
1158 | { | - |
1159 | const QGraphicsSceneMoveEventPrivate * const d = d_func(); | - |
1160 | return d->newPos; never executed: return d->newPos; | 0 |
1161 | } | - |
1162 | | - |
1163 | | - |
1164 | | - |
1165 | | - |
1166 | void QGraphicsSceneMoveEvent::setNewPos(const QPointF &pos) | - |
1167 | { | - |
1168 | QGraphicsSceneMoveEventPrivate * const d = d_func(); | - |
1169 | d->newPos = pos; | - |
1170 | } executed: } Execution Count:753 | 753 |
1171 | | - |
1172 | | - |
1173 | | - |
| | |