graphicsview/qgraphicssceneevent.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3 -
4 -
5 -
6 -
7 -
8 -
9 -
10class QGraphicsSceneEventPrivate -
11{ -
12public: -
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 -
30QGraphicsSceneEvent::QGraphicsSceneEvent(Type type) -
31 : QEvent(type), d_ptr(new QGraphicsSceneEventPrivate) -
32{ -
33 d_ptr->q_ptr = this; -
34}
never executed: }
0
35 -
36 -
37 -
38 -
39 -
40 -
41QGraphicsSceneEvent::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 -
50QGraphicsSceneEvent::~QGraphicsSceneEvent() -
51{ -
52} -
53 -
54 -
55 -
56 -
57 -
58QWidget *QGraphicsSceneEvent::widget() const -
59{ -
60 return d_ptr->widget;
executed: return d_ptr->widget;
Execution Count:2119
2119
61} -
62void QGraphicsSceneEvent::setWidget(QWidget *widget) -
63{ -
64 d_ptr->widget = widget; -
65}
executed: }
Execution Count:651
651
66 -
67class 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; -
70public: -
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 -
95QGraphicsSceneMouseEvent::QGraphicsSceneMouseEvent(Type type) -
96 : QGraphicsSceneEvent(*new QGraphicsSceneMouseEventPrivate, type) -
97{ -
98}
executed: }
Execution Count:287
287
99 -
100 -
101 -
102 -
103QGraphicsSceneMouseEvent::~QGraphicsSceneMouseEvent() -
104{ -
105} -
106 -
107 -
108 -
109 -
110 -
111 -
112QPointF 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 -
121void 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 -
132QPointF 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 -
141void 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 -
152QPoint 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 -
161void 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 -
173QPointF 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 -
182void 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 -
194QPointF 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 -
203void 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 -
215QPoint 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 -
224void 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 -
236QPointF 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 -
245void QGraphicsSceneMouseEvent::setLastPos(const QPointF &pos) -
246{ -
247 QGraphicsSceneMouseEventPrivate * const d = d_func(); -
248 d->lastPos = pos; -
249}
executed: }
Execution Count:212
212
250QPointF 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 -
259void QGraphicsSceneMouseEvent::setLastScenePos(const QPointF &pos) -
260{ -
261 QGraphicsSceneMouseEventPrivate * const d = d_func(); -
262 d->lastScenePos = pos; -
263}
executed: }
Execution Count:286
286
264QPoint 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 -
273void 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 -
285Qt::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 -
294void 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 -
305Qt::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 -
314void 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 -
326Qt::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 -
335void QGraphicsSceneMouseEvent::setModifiers(Qt::KeyboardModifiers modifiers) -
336{ -
337 QGraphicsSceneMouseEventPrivate * const d = d_func(); -
338 d->modifiers = modifiers; -
339}
executed: }
Execution Count:286
286
340 -
341class 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; -
344public: -
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 -
364QGraphicsSceneWheelEvent::QGraphicsSceneWheelEvent(Type type) -
365 : QGraphicsSceneEvent(*new QGraphicsSceneWheelEventPrivate, type) -
366{ -
367}
executed: }
Execution Count:2
2
368 -
369 -
370 -
371 -
372QGraphicsSceneWheelEvent::~QGraphicsSceneWheelEvent() -
373{ -
374} -
375 -
376 -
377 -
378 -
379 -
380 -
381 -
382QPointF 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 -
391void 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 -
403QPointF 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 -
412void 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 -
424QPoint 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 -
433void 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 -
444Qt::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 -
453void 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 -
465Qt::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 -
474void QGraphicsSceneWheelEvent::setModifiers(Qt::KeyboardModifiers modifiers) -
475{ -
476 QGraphicsSceneWheelEventPrivate * const d = d_func(); -
477 d->modifiers = modifiers; -
478}
executed: }
Execution Count:2
2
479int 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 -
488void 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 -
497Qt::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 -
506void QGraphicsSceneWheelEvent::setOrientation(Qt::Orientation orientation) -
507{ -
508 QGraphicsSceneWheelEventPrivate * const d = d_func(); -
509 d->orientation = orientation; -
510}
executed: }
Execution Count:2
2
511 -
512class 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 -
532QGraphicsSceneContextMenuEvent::QGraphicsSceneContextMenuEvent(Type type) -
533 : QGraphicsSceneEvent(*new QGraphicsSceneContextMenuEventPrivate, type) -
534{ -
535}
executed: }
Execution Count:100
100
536 -
537 -
538 -
539 -
540QGraphicsSceneContextMenuEvent::~QGraphicsSceneContextMenuEvent() -
541{ -
542} -
543 -
544 -
545 -
546 -
547 -
548 -
549 -
550QPointF QGraphicsSceneContextMenuEvent::pos() const -
551{ -
552 const QGraphicsSceneContextMenuEventPrivate * const d = d_func(); -
553 return d->pos;
never executed: return d->pos;
0
554} -
555void 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 -
567QPointF QGraphicsSceneContextMenuEvent::scenePos() const -
568{ -
569 const QGraphicsSceneContextMenuEventPrivate * const d = d_func(); -
570 return d->scenePos;
executed: return d->scenePos;
Execution Count:200
200
571} -
572void 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 -
584QPoint QGraphicsSceneContextMenuEvent::screenPos() const -
585{ -
586 const QGraphicsSceneContextMenuEventPrivate * const d = d_func(); -
587 return d->screenPos;
executed: return d->screenPos;
Execution Count:100
100
588} -
589void 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 -
598Qt::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 -
610void 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 -
621QGraphicsSceneContextMenuEvent::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 -
633void QGraphicsSceneContextMenuEvent::setReason(Reason reason) -
634{ -
635 QGraphicsSceneContextMenuEventPrivate * const d = d_func(); -
636 d->reason = reason; -
637}
executed: }
Execution Count:100
100
638 -
639class QGraphicsSceneHoverEventPrivate : public QGraphicsSceneEventPrivate -
640{ -
641public: -
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 -
656QGraphicsSceneHoverEvent::QGraphicsSceneHoverEvent(Type type) -
657 : QGraphicsSceneEvent(*new QGraphicsSceneHoverEventPrivate, type) -
658{ -
659}
executed: }
Execution Count:265
265
660 -
661 -
662 -
663 -
664QGraphicsSceneHoverEvent::~QGraphicsSceneHoverEvent() -
665{ -
666} -
667 -
668 -
669 -
670 -
671 -
672 -
673 -
674QPointF QGraphicsSceneHoverEvent::pos() const -
675{ -
676 const QGraphicsSceneHoverEventPrivate * const d = d_func(); -
677 return d->pos;
never executed: return d->pos;
0
678} -
679void 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 -
691QPointF QGraphicsSceneHoverEvent::scenePos() const -
692{ -
693 const QGraphicsSceneHoverEventPrivate * const d = d_func(); -
694 return d->scenePos;
executed: return d->scenePos;
Execution Count:2
2
695} -
696void 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 -
708QPoint QGraphicsSceneHoverEvent::screenPos() const -
709{ -
710 const QGraphicsSceneHoverEventPrivate * const d = d_func(); -
711 return d->screenPos;
executed: return d->screenPos;
Execution Count:2
2
712} -
713void QGraphicsSceneHoverEvent::setScreenPos(const QPoint &pos) -
714{ -
715 QGraphicsSceneHoverEventPrivate * const d = d_func(); -
716 d->screenPos = pos; -
717}
executed: }
Execution Count:263
263
718QPointF 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 -
727void QGraphicsSceneHoverEvent::setLastPos(const QPointF &pos) -
728{ -
729 QGraphicsSceneHoverEventPrivate * const d = d_func(); -
730 d->lastPos = pos; -
731}
executed: }
Execution Count:261
261
732QPointF 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 -
741void QGraphicsSceneHoverEvent::setLastScenePos(const QPointF &pos) -
742{ -
743 QGraphicsSceneHoverEventPrivate * const d = d_func(); -
744 d->lastScenePos = pos; -
745}
executed: }
Execution Count:263
263
746QPoint 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 -
755void 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 -
766Qt::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 -
778void QGraphicsSceneHoverEvent::setModifiers(Qt::KeyboardModifiers modifiers) -
779{ -
780 QGraphicsSceneHoverEventPrivate * const d = d_func(); -
781 d->modifiers = modifiers; -
782}
executed: }
Execution Count:261
261
783 -
784class QGraphicsSceneHelpEventPrivate : public QGraphicsSceneEventPrivate -
785{ -
786public: -
787 QPointF scenePos; -
788 QPoint screenPos; -
789}; -
790 -
791 -
792 -
793 -
794 -
795 -
796QGraphicsSceneHelpEvent::QGraphicsSceneHelpEvent(Type type) -
797 : QGraphicsSceneEvent(*new QGraphicsSceneHelpEventPrivate, type) -
798{ -
799}
never executed: }
0
800 -
801 -
802 -
803 -
804QGraphicsSceneHelpEvent::~QGraphicsSceneHelpEvent() -
805{ -
806} -
807 -
808 -
809 -
810 -
811 -
812 -
813 -
814QPointF QGraphicsSceneHelpEvent::scenePos() const -
815{ -
816 const QGraphicsSceneHelpEventPrivate * const d = d_func(); -
817 return d->scenePos;
never executed: return d->scenePos;
0
818} -
819void QGraphicsSceneHelpEvent::setScenePos(const QPointF &pos) -
820{ -
821 QGraphicsSceneHelpEventPrivate * const d = d_func(); -
822 d->scenePos = pos; -
823}
never executed: }
0
824 -
825 -
826 -
827 -
828 -
829 -
830 -
831QPoint QGraphicsSceneHelpEvent::screenPos() const -
832{ -
833 const QGraphicsSceneHelpEventPrivate * const d = d_func(); -
834 return d->screenPos;
never executed: return d->screenPos;
0
835} -
836void QGraphicsSceneHelpEvent::setScreenPos(const QPoint &pos) -
837{ -
838 QGraphicsSceneHelpEventPrivate * const d = d_func(); -
839 d->screenPos = pos; -
840}
never executed: }
0
841 -
842class 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; -
845public: -
846 inline QGraphicsSceneDragDropEventPrivate() -
847 : source(0), mimeData(0) -
848 { }
never executed: }
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}; -
861QGraphicsSceneDragDropEvent::QGraphicsSceneDragDropEvent(Type type) -
862 : QGraphicsSceneEvent(*new QGraphicsSceneDragDropEventPrivate, type) -
863{ -
864}
never executed: }
0
865 -
866 -
867 -
868 -
869QGraphicsSceneDragDropEvent::~QGraphicsSceneDragDropEvent() -
870{ -
871} -
872 -
873 -
874 -
875 -
876 -
877 -
878 -
879QPointF QGraphicsSceneDragDropEvent::pos() const -
880{ -
881 const QGraphicsSceneDragDropEventPrivate * const d = d_func(); -
882 return d->pos;
never executed: return d->pos;
0
883} -
884void QGraphicsSceneDragDropEvent::setPos(const QPointF &pos) -
885{ -
886 QGraphicsSceneDragDropEventPrivate * const d = d_func(); -
887 d->pos = pos; -
888}
never executed: }
0
889 -
890 -
891 -
892 -
893 -
894 -
895QPointF 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 -
907void QGraphicsSceneDragDropEvent::setScenePos(const QPointF &pos) -
908{ -
909 QGraphicsSceneDragDropEventPrivate * const d = d_func(); -
910 d->scenePos = pos; -
911}
never executed: }
0
912 -
913 -
914 -
915 -
916 -
917 -
918QPoint 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 -
930void QGraphicsSceneDragDropEvent::setScreenPos(const QPoint &pos) -
931{ -
932 QGraphicsSceneDragDropEventPrivate * const d = d_func(); -
933 d->screenPos = pos; -
934}
never executed: }
0
935Qt::MouseButtons QGraphicsSceneDragDropEvent::buttons() const -
936{ -
937 const QGraphicsSceneDragDropEventPrivate * const d = d_func(); -
938 return d->buttons;
never executed: return d->buttons;
0
939} -
940void QGraphicsSceneDragDropEvent::setButtons(Qt::MouseButtons buttons) -
941{ -
942 QGraphicsSceneDragDropEventPrivate * const d = d_func(); -
943 d->buttons = buttons; -
944}
never executed: }
0
945 -
946 -
947 -
948 -
949 -
950 -
951 -
952Qt::KeyboardModifiers QGraphicsSceneDragDropEvent::modifiers() const -
953{ -
954 const QGraphicsSceneDragDropEventPrivate * const d = d_func(); -
955 return d->modifiers;
never executed: return d->modifiers;
0
956} -
957void QGraphicsSceneDragDropEvent::setModifiers(Qt::KeyboardModifiers modifiers) -
958{ -
959 QGraphicsSceneDragDropEventPrivate * const d = d_func(); -
960 d->modifiers = modifiers; -
961}
never executed: }
0
962Qt::DropActions QGraphicsSceneDragDropEvent::possibleActions() const -
963{ -
964 const QGraphicsSceneDragDropEventPrivate * const d = d_func(); -
965 return d->possibleActions;
never executed: return d->possibleActions;
0
966} -
967void QGraphicsSceneDragDropEvent::setPossibleActions(Qt::DropActions actions) -
968{ -
969 QGraphicsSceneDragDropEventPrivate * const d = d_func(); -
970 d->possibleActions = actions; -
971}
never executed: }
0
972Qt::DropAction QGraphicsSceneDragDropEvent::proposedAction() const -
973{ -
974 const QGraphicsSceneDragDropEventPrivate * const d = d_func(); -
975 return d->proposedAction;
never executed: return d->proposedAction;
0
976} -
977void QGraphicsSceneDragDropEvent::setProposedAction(Qt::DropAction action) -
978{ -
979 QGraphicsSceneDragDropEventPrivate * const d = d_func(); -
980 d->proposedAction = action; -
981}
never executed: }
0
982void QGraphicsSceneDragDropEvent::acceptProposedAction() -
983{ -
984 QGraphicsSceneDragDropEventPrivate * const d = d_func(); -
985 d->dropAction = d->proposedAction; -
986}
never executed: }
0
987Qt::DropAction QGraphicsSceneDragDropEvent::dropAction() const -
988{ -
989 const QGraphicsSceneDragDropEventPrivate * const d = d_func(); -
990 return d->dropAction;
never executed: return d->dropAction;
0
991} -
992void QGraphicsSceneDragDropEvent::setDropAction(Qt::DropAction action) -
993{ -
994 QGraphicsSceneDragDropEventPrivate * const d = d_func(); -
995 d->dropAction = action; -
996}
never executed: }
0
997 -
998 -
999 -
1000 -
1001 -
1002QWidget *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 -
1013void QGraphicsSceneDragDropEvent::setSource(QWidget *source) -
1014{ -
1015 QGraphicsSceneDragDropEventPrivate * const d = d_func(); -
1016 d->source = source; -
1017}
never executed: }
0
1018 -
1019 -
1020 -
1021 -
1022const 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 -
1032void QGraphicsSceneDragDropEvent::setMimeData(const QMimeData *data) -
1033{ -
1034 QGraphicsSceneDragDropEventPrivate * const d = d_func(); -
1035 d->mimeData = data; -
1036}
never executed: }
0
1037 -
1038class 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; -
1041public: -
1042 inline QGraphicsSceneResizeEventPrivate() -
1043 { } -
1044 -
1045 QSizeF oldSize; -
1046 QSizeF newSize; -
1047}; -
1048 -
1049 -
1050 -
1051 -
1052QGraphicsSceneResizeEvent::QGraphicsSceneResizeEvent() -
1053 : QGraphicsSceneEvent(*new QGraphicsSceneResizeEventPrivate, QEvent::GraphicsSceneResize) -
1054{ -
1055}
executed: }
Execution Count:1746
1746
1056 -
1057 -
1058 -
1059 -
1060QGraphicsSceneResizeEvent::~QGraphicsSceneResizeEvent() -
1061{ -
1062} -
1063 -
1064 -
1065 -
1066 -
1067 -
1068 -
1069 -
1070QSizeF 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 -
1079void 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 -
1090QSizeF 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 -
1099void QGraphicsSceneResizeEvent::setNewSize(const QSizeF &size) -
1100{ -
1101 QGraphicsSceneResizeEventPrivate * const d = d_func(); -
1102 d->newSize = size; -
1103}
executed: }
Execution Count:1746
1746
1104 -
1105class 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; -
1108public: -
1109 inline QGraphicsSceneMoveEventPrivate() -
1110 { } -
1111 -
1112 QPointF oldPos; -
1113 QPointF newPos; -
1114}; -
1115 -
1116 -
1117 -
1118 -
1119QGraphicsSceneMoveEvent::QGraphicsSceneMoveEvent() -
1120 : QGraphicsSceneEvent(*new QGraphicsSceneMoveEventPrivate, QEvent::GraphicsSceneMove) -
1121{ -
1122}
executed: }
Execution Count:753
753
1123 -
1124 -
1125 -
1126 -
1127QGraphicsSceneMoveEvent::~QGraphicsSceneMoveEvent() -
1128{ -
1129} -
1130 -
1131 -
1132 -
1133 -
1134 -
1135 -
1136 -
1137QPointF 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 -
1146void 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 -
1157QPointF 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 -
1166void 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 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial