qevent.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/gui/kernel/qevent.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4QEnterEvent::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}
never executed: end of block
0
11-
12-
13-
14-
15QEnterEvent::~QEnterEvent()-
16{-
17}-
18QInputEvent::QInputEvent(Type type, Qt::KeyboardModifiers modifiers)-
19 : QEvent(type), modState(modifiers), ts(0)-
20{}
never executed: end of block
0
21-
22-
23-
24-
25QInputEvent::~QInputEvent()-
26{-
27}-
28QMouseEvent::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-
33 s = QCursor::pos();-
34-
35}
never executed: end of block
0
36QMouseEvent::QMouseEvent(Type type, const QPointF &localPos, const QPointF &screenPos,-
37 Qt::MouseButton button, Qt::MouseButtons buttons,-
38 Qt::KeyboardModifiers modifiers)-
39 : QInputEvent(type, modifiers), l(localPos), w(localPos), s(screenPos), b(button), mouseState(buttons), caps(0)-
40{}
never executed: end of block
0
41QMouseEvent::QMouseEvent(Type type, const QPointF &localPos, const QPointF &windowPos, const QPointF &screenPos,-
42 Qt::MouseButton button, Qt::MouseButtons buttons,-
43 Qt::KeyboardModifiers modifiers)-
44 : QInputEvent(type, modifiers), l(localPos), w(windowPos), s(screenPos), b(button), mouseState(buttons), caps(0)-
45{}
never executed: end of block
0
46QMouseEvent::QMouseEvent(QEvent::Type type, const QPointF &localPos, const QPointF &windowPos, const QPointF &screenPos,-
47 Qt::MouseButton button, Qt::MouseButtons buttons,-
48 Qt::KeyboardModifiers modifiers, Qt::MouseEventSource source)-
49 : QInputEvent(type, modifiers), l(localPos), w(windowPos), s(screenPos), b(button), mouseState(buttons), caps(0)-
50{-
51 QGuiApplicationPrivate::setMouseEventSource(this, source);-
52}
never executed: end of block
0
53-
54-
55-
56-
57QMouseEvent::~QMouseEvent()-
58{-
59}-
60Qt::MouseEventSource QMouseEvent::source() const-
61{-
62 return
never executed: return QGuiApplicationPrivate::mouseEventSource(this);
QGuiApplicationPrivate::mouseEventSource(this);
never executed: return QGuiApplicationPrivate::mouseEventSource(this);
0
63}-
64Qt::MouseEventFlags QMouseEvent::flags() const-
65{-
66 return
never executed: return QGuiApplicationPrivate::mouseEventFlags(this);
QGuiApplicationPrivate::mouseEventFlags(this);
never executed: return QGuiApplicationPrivate::mouseEventFlags(this);
0
67}-
68QHoverEvent::QHoverEvent(Type type, const QPointF &pos, const QPointF &oldPos, Qt::KeyboardModifiers modifiers)-
69 : QInputEvent(type, modifiers), p(pos), op(oldPos)-
70{-
71}
never executed: end of block
0
72-
73-
74-
75-
76QHoverEvent::~QHoverEvent()-
77{-
78}-
79QWheelEvent::QWheelEvent(const QPointF &pos, int delta,-
80 Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers,-
81 Qt::Orientation orient)-
82 : QInputEvent(Wheel, modifiers), p(pos), qt4D(delta), qt4O(orient), mouseState(buttons),-
83 ph(Qt::NoScrollPhase), src(Qt::MouseEventNotSynthesized), invertedScrolling(false)-
84{-
85 g = QCursor::pos();-
86 if (orient == Qt::Vertical
orient == Qt::VerticalDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
87 angleD = QPoint(0, delta);
never executed: angleD = QPoint(0, delta);
0
88 else-
89 angleD = QPoint(delta, 0);
never executed: angleD = QPoint(delta, 0);
0
90}-
91-
92-
93-
94-
95QWheelEvent::~QWheelEvent()-
96{-
97}-
98QWheelEvent::QWheelEvent(const QPointF &pos, const QPointF& globalPos, int delta,-
99 Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers,-
100 Qt::Orientation orient)-
101 : QInputEvent(Wheel, modifiers), p(pos), g(globalPos), qt4D(delta), qt4O(orient), mouseState(buttons),-
102 ph(Qt::NoScrollPhase), src(Qt::MouseEventNotSynthesized), invertedScrolling(false)-
103{-
104 if (orient == Qt::Vertical
orient == Qt::VerticalDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
105 angleD = QPoint(0, delta);
never executed: angleD = QPoint(0, delta);
0
106 else-
107 angleD = QPoint(delta, 0);
never executed: angleD = QPoint(delta, 0);
0
108}-
109QWheelEvent::QWheelEvent(const QPointF &pos, const QPointF& globalPos,-
110 QPoint pixelDelta, QPoint angleDelta, int qt4Delta, Qt::Orientation qt4Orientation,-
111 Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers)-
112 : QInputEvent(Wheel, modifiers), p(pos), g(globalPos), pixelD(pixelDelta),-
113 angleD(angleDelta), qt4D(qt4Delta), qt4O(qt4Orientation), mouseState(buttons), ph(Qt::NoScrollPhase),-
114 src(Qt::MouseEventNotSynthesized), invertedScrolling(false)-
115{}
never executed: end of block
0
116QWheelEvent::QWheelEvent(const QPointF &pos, const QPointF& globalPos,-
117 QPoint pixelDelta, QPoint angleDelta, int qt4Delta, Qt::Orientation qt4Orientation,-
118 Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::ScrollPhase phase)-
119 : QInputEvent(Wheel, modifiers), p(pos), g(globalPos), pixelD(pixelDelta),-
120 angleD(angleDelta), qt4D(qt4Delta), qt4O(qt4Orientation), mouseState(buttons), ph(phase),-
121 src(Qt::MouseEventNotSynthesized), invertedScrolling(false)-
122{}
never executed: end of block
0
123QWheelEvent::QWheelEvent(const QPointF &pos, const QPointF& globalPos,-
124 QPoint pixelDelta, QPoint angleDelta, int qt4Delta, Qt::Orientation qt4Orientation,-
125 Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::ScrollPhase phase, Qt::MouseEventSource source)-
126 : QInputEvent(Wheel, modifiers), p(pos), g(globalPos), pixelD(pixelDelta),-
127 angleD(angleDelta), qt4D(qt4Delta), qt4O(qt4Orientation), mouseState(buttons), ph(phase), src(source),-
128 invertedScrolling(false)-
129{}
never executed: end of block
0
130QWheelEvent::QWheelEvent(const QPointF &pos, const QPointF& globalPos,-
131 QPoint pixelDelta, QPoint angleDelta, int qt4Delta, Qt::Orientation qt4Orientation,-
132 Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::ScrollPhase phase, Qt::MouseEventSource source, bool inverted)-
133 : QInputEvent(Wheel, modifiers), p(pos), g(globalPos), pixelD(pixelDelta),-
134 angleD(angleDelta), qt4D(qt4Delta), qt4O(qt4Orientation), mouseState(buttons), ph(phase), src(source),-
135 invertedScrolling(inverted)-
136{}
never executed: end of block
0
137QKeyEvent::QKeyEvent(Type type, int key, Qt::KeyboardModifiers modifiers, const QString& text,-
138 bool autorep, ushort count)-
139 : QInputEvent(type, modifiers), txt(text), k(key),-
140 nScanCode(0), nVirtualKey(0), nModifiers(0),-
141 c(count), autor(autorep)-
142{-
143 if (type == QEvent::ShortcutOverride
type == QEvent...ortcutOverrideDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
144 ignore();
never executed: ignore();
0
145}
never executed: end of block
0
146QKeyEvent::QKeyEvent(Type type, int key, Qt::KeyboardModifiers modifiers,-
147 quint32 nativeScanCode, quint32 nativeVirtualKey, quint32 nativeModifiers,-
148 const QString &text, bool autorep, ushort count)-
149 : QInputEvent(type, modifiers), txt(text), k(key),-
150 nScanCode(nativeScanCode), nVirtualKey(nativeVirtualKey), nModifiers(nativeModifiers),-
151 c(count), autor(autorep)-
152{-
153 if (type == QEvent::ShortcutOverride
type == QEvent...ortcutOverrideDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
154 ignore();
never executed: ignore();
0
155}
never executed: end of block
0
156-
157-
158-
159-
160-
161QKeyEvent::~QKeyEvent()-
162{-
163}-
164Qt::KeyboardModifiers QKeyEvent::modifiers() const-
165{-
166 if (key() == Qt::Key_Shift
key() == Qt::Key_ShiftDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
167 return
never executed: return Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::ShiftModifier);
Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::ShiftModifier);
never executed: return Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::ShiftModifier);
0
168 if (key() == Qt::Key_Control
key() == Qt::Key_ControlDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
169 return
never executed: return Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::ControlModifier);
Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::ControlModifier);
never executed: return Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::ControlModifier);
0
170 if (key() == Qt::Key_Alt
key() == Qt::Key_AltDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
171 return
never executed: return Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::AltModifier);
Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::AltModifier);
never executed: return Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::AltModifier);
0
172 if (key() == Qt::Key_Meta
key() == Qt::Key_MetaDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
173 return
never executed: return Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::MetaModifier);
Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::MetaModifier);
never executed: return Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::MetaModifier);
0
174 if (key() == Qt::Key_AltGr
key() == Qt::Key_AltGrDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
175 return
never executed: return Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::GroupSwitchModifier);
Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::GroupSwitchModifier);
never executed: return Qt::KeyboardModifiers(QInputEvent::modifiers()^Qt::GroupSwitchModifier);
0
176 return
never executed: return QInputEvent::modifiers();
QInputEvent::modifiers();
never executed: return QInputEvent::modifiers();
0
177}-
178bool QKeyEvent::matches(QKeySequence::StandardKey matchKey) const-
179{-
180-
181 uint searchkey = (modifiers() | key()) & ~(Qt::KeypadModifier | Qt::GroupSwitchModifier);-
182-
183 const QList<QKeySequence> bindings = QKeySequence::keyBindings(matchKey);-
184 return
never executed: return bindings.contains(QKeySequence(searchkey));
bindings.contains(QKeySequence(searchkey));
never executed: return bindings.contains(QKeySequence(searchkey));
0
185}-
186QFocusEvent::QFocusEvent(Type type, Qt::FocusReason reason)-
187 : QEvent(type), m_reason(reason)-
188{}
never executed: end of block
0
189-
190-
191-
192-
193QFocusEvent::~QFocusEvent()-
194{-
195}-
196-
197-
198-
199-
200Qt::FocusReason QFocusEvent::reason() const-
201{-
202 return
never executed: return m_reason;
m_reason;
never executed: return m_reason;
0
203}-
204QPaintEvent::QPaintEvent(const QRegion& paintRegion)-
205 : QEvent(Paint), m_rect(paintRegion.boundingRect()), m_region(paintRegion), m_erased(false)-
206{}
never executed: end of block
0
207-
208-
209-
210-
211-
212QPaintEvent::QPaintEvent(const QRect &paintRect)-
213 : QEvent(Paint), m_rect(paintRect),m_region(paintRect), m_erased(false)-
214{}
never executed: end of block
0
215-
216-
217-
218-
219-
220QPaintEvent::~QPaintEvent()-
221{-
222}-
223QMoveEvent::QMoveEvent(const QPoint &pos, const QPoint &oldPos)-
224 : QEvent(Move), p(pos), oldp(oldPos)-
225{}
never executed: end of block
0
226-
227-
228-
229-
230QMoveEvent::~QMoveEvent()-
231{-
232}-
233QExposeEvent::QExposeEvent(const QRegion &exposeRegion)-
234 : QEvent(Expose)-
235 , rgn(exposeRegion)-
236{-
237}
never executed: end of block
0
238-
239-
240-
241-
242QExposeEvent::~QExposeEvent()-
243{-
244}-
245QPlatformSurfaceEvent::QPlatformSurfaceEvent(SurfaceEventType surfaceEventType)-
246 : QEvent(PlatformSurface)-
247 , m_surfaceEventType(surfaceEventType)-
248{-
249}
never executed: end of block
0
250-
251-
252-
253-
254QPlatformSurfaceEvent::~QPlatformSurfaceEvent()-
255{-
256}-
257QResizeEvent::QResizeEvent(const QSize &size, const QSize &oldSize)-
258 : QEvent(Resize), s(size), olds(oldSize)-
259{}
never executed: end of block
0
260-
261-
262-
263-
264QResizeEvent::~QResizeEvent()-
265{-
266}-
267QCloseEvent::QCloseEvent()-
268 : QEvent(Close)-
269{}
never executed: end of block
0
270-
271-
272-
273QCloseEvent::~QCloseEvent()-
274{-
275}-
276QIconDragEvent::QIconDragEvent()-
277 : QEvent(IconDrag)-
278{ ignore(); }
never executed: end of block
0
279-
280-
281QIconDragEvent::~QIconDragEvent()-
282{-
283}-
284QContextMenuEvent::QContextMenuEvent(Reason reason, const QPoint &pos, const QPoint &globalPos)-
285 : QInputEvent(ContextMenu), p(pos), gp(globalPos), reas(reason)-
286{}
never executed: end of block
0
287QContextMenuEvent::QContextMenuEvent(Reason reason, const QPoint &pos, const QPoint &globalPos,-
288 Qt::KeyboardModifiers modifiers)-
289 : QInputEvent(ContextMenu, modifiers), p(pos), gp(globalPos), reas(reason)-
290{}
never executed: end of block
0
291-
292-
293-
294QContextMenuEvent::~QContextMenuEvent()-
295{-
296}-
297QContextMenuEvent::QContextMenuEvent(Reason reason, const QPoint &pos)-
298 : QInputEvent(ContextMenu), p(pos), reas(reason)-
299{-
300-
301 gp = QCursor::pos();-
302-
303}
never executed: end of block
0
304QInputMethodEvent::QInputMethodEvent()-
305 : QEvent(QEvent::InputMethod), replace_from(0), replace_length(0)-
306{-
307}
never executed: end of block
0
308QInputMethodEvent::QInputMethodEvent(const QString &preeditText, const QList<Attribute> &attributes)-
309 : QEvent(QEvent::InputMethod), preedit(preeditText), attrs(attributes),-
310 replace_from(0), replace_length(0)-
311{-
312}
never executed: end of block
0
313-
314-
315-
316-
317QInputMethodEvent::QInputMethodEvent(const QInputMethodEvent &other)-
318 : QEvent(QEvent::InputMethod), preedit(other.preedit), attrs(other.attrs),-
319 commit(other.commit), replace_from(other.replace_from), replace_length(other.replace_length)-
320{-
321}
never executed: end of block
0
322-
323QInputMethodEvent::~QInputMethodEvent()-
324{-
325-
326}-
327void QInputMethodEvent::setCommitString(const QString &commitString, int replaceFrom, int replaceLength)-
328{-
329 commit = commitString;-
330 replace_from = replaceFrom;-
331 replace_length = replaceLength;-
332}
never executed: end of block
0
333QInputMethodQueryEvent::QInputMethodQueryEvent(Qt::InputMethodQueries queries)-
334 : QEvent(InputMethodQuery),-
335 m_queries(queries)-
336{-
337}
never executed: end of block
0
338-
339-
340-
341-
342QInputMethodQueryEvent::~QInputMethodQueryEvent()-
343{-
344}-
345-
346-
347-
348-
349void QInputMethodQueryEvent::setValue(Qt::InputMethodQuery query, const QVariant &value)-
350{-
351 for (int i = 0; i < m_values.size()
i < m_values.size()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
352 if (m_values.at(i).query == query
m_values.at(i).query == queryDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
353 m_values[i].value = value;-
354 return;
never executed: return;
0
355 }-
356 }
never executed: end of block
0
357 QueryPair pair = { query, value };-
358 m_values.append(pair);-
359}
never executed: end of block
0
360-
361-
362-
363-
364QVariant QInputMethodQueryEvent::value(Qt::InputMethodQuery query) const-
365{-
366 for (int i = 0; i < m_values.size()
i < m_values.size()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i)
0
367 if (m_values.at(i).query == query
m_values.at(i).query == queryDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
368 return
never executed: return m_values.at(i).value;
m_values.at(i).value;
never executed: return m_values.at(i).value;
0
369 return
never executed: return QVariant();
QVariant();
never executed: return QVariant();
0
370}-
371QTabletEvent::QTabletEvent(Type type, const QPointF &pos, const QPointF &globalPos,-
372 int device, int pointerType,-
373 qreal pressure, int xTilt, int yTilt, qreal tangentialPressure,-
374 qreal rotation, int z, Qt::KeyboardModifiers keyState, qint64 uniqueID,-
375 Qt::MouseButton button, Qt::MouseButtons buttons)-
376 : QInputEvent(type, keyState),-
377 mPos(pos),-
378 mGPos(globalPos),-
379 mDev(device),-
380 mPointerType(pointerType),-
381 mXT(xTilt),-
382 mYT(yTilt),-
383 mZ(z),-
384 mPress(pressure),-
385 mTangential(tangentialPressure),-
386 mRot(rotation),-
387 mUnique(uniqueID),-
388 mExtra(new QTabletEventPrivate(button, buttons))-
389{-
390}
never executed: end of block
0
391QTabletEvent::QTabletEvent(Type type, const QPointF &pos, const QPointF &globalPos,-
392 int device, int pointerType,-
393 qreal pressure, int xTilt, int yTilt, qreal tangentialPressure,-
394 qreal rotation, int z, Qt::KeyboardModifiers keyState, qint64 uniqueID)-
395 : QInputEvent(type, keyState),-
396 mPos(pos),-
397 mGPos(globalPos),-
398 mDev(device),-
399 mPointerType(pointerType),-
400 mXT(xTilt),-
401 mYT(yTilt),-
402 mZ(z),-
403 mPress(pressure),-
404 mTangential(tangentialPressure),-
405 mRot(rotation),-
406 mUnique(uniqueID),-
407 mExtra(new QTabletEventPrivate(Qt::NoButton, Qt::NoButton))-
408{-
409}
never executed: end of block
0
410-
411-
412-
413-
414QTabletEvent::~QTabletEvent()-
415{-
416}-
417Qt::MouseButton QTabletEvent::button() const-
418{-
419 return
never executed: return static_cast<QTabletEventPrivate *>(mExtra)->b;
static_cast<QTabletEventPrivate *>(mExtra)->b;
never executed: return static_cast<QTabletEventPrivate *>(mExtra)->b;
0
420}-
421Qt::MouseButtons QTabletEvent::buttons() const-
422{-
423 return
never executed: return static_cast<QTabletEventPrivate *>(mExtra)->buttonState;
static_cast<QTabletEventPrivate *>(mExtra)->buttonState;
never executed: return static_cast<QTabletEventPrivate *>(mExtra)->buttonState;
0
424}-
425QNativeGestureEvent::QNativeGestureEvent(Qt::NativeGestureType type, const QPointF &localPos, const QPointF &windowPos,-
426 const QPointF &screenPos, qreal realValue, ulong sequenceId, quint64 intValue)-
427 : QInputEvent(QEvent::NativeGesture), mGestureType(type),-
428 mLocalPos(localPos), mWindowPos(windowPos), mScreenPos(screenPos), mRealValue(realValue),-
429 mSequenceId(sequenceId), mIntValue(intValue)-
430{ }
never executed: end of block
0
431QDragMoveEvent::QDragMoveEvent(const QPoint& pos, Qt::DropActions actions, const QMimeData *data,-
432 Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Type type)-
433 : QDropEvent(pos, actions, data, buttons, modifiers, type)-
434 , rect(pos, QSize(1, 1))-
435{}
never executed: end of block
0
436-
437-
438-
439-
440QDragMoveEvent::~QDragMoveEvent()-
441{-
442}-
443QDropEvent::QDropEvent(const QPointF& pos, Qt::DropActions actions, const QMimeData *data,-
444 Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Type type)-
445 : QEvent(type), p(pos), mouseState(buttons),-
446 modState(modifiers), act(actions),-
447 mdata(data)-
448{-
449 default_action = QGuiApplicationPrivate::platformIntegration()->drag()->defaultAction(act, modifiers);-
450 drop_action = default_action;-
451 ignore();-
452}
never executed: end of block
0
453-
454-
455QDropEvent::~QDropEvent()-
456{-
457}-
458QObject* QDropEvent::source() const-
459{-
460 if (const
const QDragMan...anager::self()Description
TRUEnever evaluated
FALSEnever evaluated
QDragManager *manager = QDragManager::self()
const QDragMan...anager::self()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
461 return
never executed: return manager->source();
manager->source();
never executed: return manager->source();
0
462 return
never executed: return 0;
0;
never executed: return 0;
0
463}-
464-
465-
466void QDropEvent::setDropAction(Qt::DropAction action)-
467{-
468 if (!(action & act)
!(action & act)Description
TRUEnever evaluated
FALSEnever evaluated
&& action != Qt::IgnoreAction
action != Qt::IgnoreActionDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
469 action = default_action;
never executed: action = default_action;
0
470 drop_action = action;-
471}
never executed: end of block
0
472QDragEnterEvent::QDragEnterEvent(const QPoint& point, Qt::DropActions actions, const QMimeData *data,-
473 Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers)-
474 : QDragMoveEvent(point, actions, data, buttons, modifiers, DragEnter)-
475{}
never executed: end of block
0
476-
477-
478-
479QDragEnterEvent::~QDragEnterEvent()-
480{-
481}-
482QDragLeaveEvent::QDragLeaveEvent()-
483 : QEvent(DragLeave)-
484{}
never executed: end of block
0
485-
486-
487-
488QDragLeaveEvent::~QDragLeaveEvent()-
489{-
490}-
491QHelpEvent::QHelpEvent(Type type, const QPoint &pos, const QPoint &globalPos)-
492 : QEvent(type), p(pos), gp(globalPos)-
493{}
never executed: end of block
0
494QHelpEvent::~QHelpEvent()-
495{-
496}-
497QStatusTipEvent::QStatusTipEvent(const QString &tip)-
498 : QEvent(StatusTip), s(tip)-
499{}
never executed: end of block
0
500-
501-
502-
503QStatusTipEvent::~QStatusTipEvent()-
504{-
505}-
506QWhatsThisClickedEvent::QWhatsThisClickedEvent(const QString &href)-
507 : QEvent(WhatsThisClicked), s(href)-
508{}
never executed: end of block
0
509-
510-
511-
512QWhatsThisClickedEvent::~QWhatsThisClickedEvent()-
513{-
514}-
515QActionEvent::QActionEvent(int type, QAction *action, QAction *before)-
516 : QEvent(static_cast<QEvent::Type>(type)), act(action), bef(before)-
517{}
never executed: end of block
0
518-
519-
520-
521QActionEvent::~QActionEvent()-
522{-
523}-
524QHideEvent::QHideEvent()-
525 : QEvent(Hide)-
526{}
never executed: end of block
0
527-
528-
529-
530QHideEvent::~QHideEvent()-
531{-
532}-
533QShowEvent::QShowEvent()-
534 : QEvent(Show)-
535{}
never executed: end of block
0
536-
537-
538-
539QShowEvent::~QShowEvent()-
540{-
541}-
542QFileOpenEvent::QFileOpenEvent(const QString &file)-
543 : QEvent(FileOpen), f(file), m_url(QUrl::fromLocalFile(file))-
544{-
545}
never executed: end of block
0
546-
547-
548-
549-
550-
551-
552QFileOpenEvent::QFileOpenEvent(const QUrl &url)-
553 : QEvent(FileOpen), f(url.toLocalFile()), m_url(url)-
554{-
555}
never executed: end of block
0
556-
557-
558-
559-
560QFileOpenEvent::~QFileOpenEvent()-
561{-
562}-
563bool QFileOpenEvent::openFile(QFile &file, QIODevice::OpenMode flags) const-
564{-
565 file.setFileName(f);-
566 return
never executed: return file.open(flags);
file.open(flags);
never executed: return file.open(flags);
0
567}-
568QToolBarChangeEvent::QToolBarChangeEvent(bool t)-
569 : QEvent(ToolBarChange), tog(t)-
570{}
never executed: end of block
0
571-
572-
573-
574QToolBarChangeEvent::~QToolBarChangeEvent()-
575{-
576}-
577QShortcutEvent::QShortcutEvent(const QKeySequence &key, int id, bool ambiguous)-
578 : QEvent(Shortcut), sequence(key), ambig(ambiguous), sid(id)-
579{-
580}
never executed: end of block
0
581-
582-
583-
584-
585QShortcutEvent::~QShortcutEvent()-
586{-
587}-
588-
589-
590-
591-
592-
593static inline void formatTouchEvent(QDebug d, const QTouchEvent &t)-
594{-
595 d << "QTouchEvent(";-
596 QtDebugUtils::formatQEnum(d, t.type());-
597 d << " device: " << t.device()->name();-
598 d << " states: ";-
599 QtDebugUtils::formatQFlags(d, t.touchPointStates());-
600 d << ", " << t.touchPoints().size() << " points: " << t.touchPoints() << ')';-
601}
never executed: end of block
0
602-
603static void formatUnicodeString(QDebug d, const QString &s)-
604{-
605 d << '"' << hex;-
606 for (int i = 0; i < s.size()
i < s.size()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
607 if (i
iDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
608 d << ',';
never executed: d << ',';
0
609 d << "U+" << s.at(i).unicode();-
610 }
never executed: end of block
0
611 d << dec << '"';-
612}
never executed: end of block
0
613-
614static inline void formatInputMethodEvent(QDebug d, const QInputMethodEvent *e)-
615{-
616 d << "QInputMethodEvent(";-
617 if (!e->preeditString().isEmpty()
!e->preeditString().isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
618 d << "preedit=";-
619 formatUnicodeString(d, e->preeditString());-
620 }
never executed: end of block
0
621 if (!e->commitString().isEmpty()
!e->commitString().isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
622 d << ", commit=";-
623 formatUnicodeString(d, e->commitString());-
624 }
never executed: end of block
0
625 if (e->replacementLength()
e->replacementLength()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
626 d << ", replacementStart=" << e->replacementStart() << ", replacementLength="-
627 << e->replacementLength();-
628 }
never executed: end of block
0
629 if (const
const int attr...butes().size()Description
TRUEnever evaluated
FALSEnever evaluated
int attributeCount = e->attributes().size()
const int attr...butes().size()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
630 d << ", attributes= {";-
631 for (int a = 0; a < attributeCount
a < attributeCountDescription
TRUEnever evaluated
FALSEnever evaluated
; ++a) {
0
632 const QInputMethodEvent::Attribute &at = e->attributes().at(a);-
633 if (a
aDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
634 d << ',';
never executed: d << ',';
0
635 d << "[type= " << at.type << ", start=" << at.start << ", length=" << at.length-
636 << ", value=" << at.value << ']';-
637 }
never executed: end of block
0
638 d << '}';-
639 }
never executed: end of block
0
640 d << ')';-
641}
never executed: end of block
0
642-
643static inline void formatInputMethodQueryEvent(QDebug d, const QInputMethodQueryEvent *e)-
644{-
645 const Qt::InputMethodQueries queries = e->queries();-
646 d << "QInputMethodQueryEvent(queries=" << showbase << hex << int(queries)-
647 << noshowbase << dec << ", {";-
648 for (unsigned mask = 1; mask <= Qt::ImTextAfterCursor
mask <= Qt::ImTextAfterCursorDescription
TRUEnever evaluated
FALSEnever evaluated
; mask<<=1) {
0
649 if (queries & mask
queries & maskDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
650 const QVariant value = e->value(static_cast<Qt::InputMethodQuery>(mask));-
651 if (value.isValid()
value.isValid()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
652 d << '[' << showbase << hex << mask << noshowbase << dec << '=' << value << "],";
never executed: d << '[' << showbase << hex << mask << noshowbase << dec << '=' << value << "],";
0
653 }
never executed: end of block
0
654 }
never executed: end of block
0
655 d << "})";-
656}
never executed: end of block
0
657-
658static const char *eventClassName(QEvent::Type t)-
659{-
660 switch (t) {-
661 case
never executed: case QEvent::ActionAdded:
QEvent::ActionAdded:
never executed: case QEvent::ActionAdded:
0
662 case
never executed: case QEvent::ActionRemoved:
QEvent::ActionRemoved:
never executed: case QEvent::ActionRemoved:
0
663 case
never executed: case QEvent::ActionChanged:
QEvent::ActionChanged:
never executed: case QEvent::ActionChanged:
0
664 return
never executed: return "QActionEvent";
"QActionEvent";
never executed: return "QActionEvent";
0
665 case
never executed: case QEvent::MouseButtonPress:
QEvent::MouseButtonPress:
never executed: case QEvent::MouseButtonPress:
0
666 case
never executed: case QEvent::MouseButtonRelease:
QEvent::MouseButtonRelease:
never executed: case QEvent::MouseButtonRelease:
0
667 case
never executed: case QEvent::MouseButtonDblClick:
QEvent::MouseButtonDblClick:
never executed: case QEvent::MouseButtonDblClick:
0
668 case
never executed: case QEvent::MouseMove:
QEvent::MouseMove:
never executed: case QEvent::MouseMove:
0
669 case
never executed: case QEvent::NonClientAreaMouseMove:
QEvent::NonClientAreaMouseMove:
never executed: case QEvent::NonClientAreaMouseMove:
0
670 case
never executed: case QEvent::NonClientAreaMouseButtonPress:
QEvent::NonClientAreaMouseButtonPress:
never executed: case QEvent::NonClientAreaMouseButtonPress:
0
671 case
never executed: case QEvent::NonClientAreaMouseButtonRelease:
QEvent::NonClientAreaMouseButtonRelease:
never executed: case QEvent::NonClientAreaMouseButtonRelease:
0
672 case
never executed: case QEvent::NonClientAreaMouseButtonDblClick:
QEvent::NonClientAreaMouseButtonDblClick:
never executed: case QEvent::NonClientAreaMouseButtonDblClick:
0
673 return
never executed: return "QMouseEvent";
"QMouseEvent";
never executed: return "QMouseEvent";
0
674 case
never executed: case QEvent::DragEnter:
QEvent::DragEnter:
never executed: case QEvent::DragEnter:
0
675 return
never executed: return "QDragEnterEvent";
"QDragEnterEvent";
never executed: return "QDragEnterEvent";
0
676 case
never executed: case QEvent::DragMove:
QEvent::DragMove:
never executed: case QEvent::DragMove:
0
677 return
never executed: return "QDragMoveEvent";
"QDragMoveEvent";
never executed: return "QDragMoveEvent";
0
678 case
never executed: case QEvent::Drop:
QEvent::Drop:
never executed: case QEvent::Drop:
0
679 return
never executed: return "QDropEvent";
"QDropEvent";
never executed: return "QDropEvent";
0
680 case
never executed: case QEvent::KeyPress:
QEvent::KeyPress:
never executed: case QEvent::KeyPress:
0
681 case
never executed: case QEvent::KeyRelease:
QEvent::KeyRelease:
never executed: case QEvent::KeyRelease:
0
682 case
never executed: case QEvent::ShortcutOverride:
QEvent::ShortcutOverride:
never executed: case QEvent::ShortcutOverride:
0
683 return
never executed: return "QKeyEvent";
"QKeyEvent";
never executed: return "QKeyEvent";
0
684 case
never executed: case QEvent::FocusIn:
QEvent::FocusIn:
never executed: case QEvent::FocusIn:
0
685 case
never executed: case QEvent::FocusOut:
QEvent::FocusOut:
never executed: case QEvent::FocusOut:
0
686 case
never executed: case QEvent::FocusAboutToChange:
QEvent::FocusAboutToChange:
never executed: case QEvent::FocusAboutToChange:
0
687 return
never executed: return "QFocusEvent";
"QFocusEvent";
never executed: return "QFocusEvent";
0
688 case
never executed: case QEvent::ChildAdded:
QEvent::ChildAdded:
never executed: case QEvent::ChildAdded:
0
689 case
never executed: case QEvent::ChildPolished:
QEvent::ChildPolished:
never executed: case QEvent::ChildPolished:
0
690 case
never executed: case QEvent::ChildRemoved:
QEvent::ChildRemoved:
never executed: case QEvent::ChildRemoved:
0
691 return
never executed: return "QChildEvent";
"QChildEvent";
never executed: return "QChildEvent";
0
692 case
never executed: case QEvent::Paint:
QEvent::Paint:
never executed: case QEvent::Paint:
0
693 return
never executed: return "QPaintEvent";
"QPaintEvent";
never executed: return "QPaintEvent";
0
694 case
never executed: case QEvent::Move:
QEvent::Move:
never executed: case QEvent::Move:
0
695 return
never executed: return "QMoveEvent";
"QMoveEvent";
never executed: return "QMoveEvent";
0
696 case
never executed: case QEvent::Resize:
QEvent::Resize:
never executed: case QEvent::Resize:
0
697 return
never executed: return "QResizeEvent";
"QResizeEvent";
never executed: return "QResizeEvent";
0
698 case
never executed: case QEvent::Show:
QEvent::Show:
never executed: case QEvent::Show:
0
699 return
never executed: return "QShowEvent";
"QShowEvent";
never executed: return "QShowEvent";
0
700 case
never executed: case QEvent::Hide:
QEvent::Hide:
never executed: case QEvent::Hide:
0
701 return
never executed: return "QHideEvent";
"QHideEvent";
never executed: return "QHideEvent";
0
702 case
never executed: case QEvent::Enter:
QEvent::Enter:
never executed: case QEvent::Enter:
0
703 return
never executed: return "QEnterEvent";
"QEnterEvent";
never executed: return "QEnterEvent";
0
704 case
never executed: case QEvent::Close:
QEvent::Close:
never executed: case QEvent::Close:
0
705 return
never executed: return "QCloseEvent";
"QCloseEvent";
never executed: return "QCloseEvent";
0
706 case
never executed: case QEvent::FileOpen:
QEvent::FileOpen:
never executed: case QEvent::FileOpen:
0
707 return
never executed: return "QFileOpenEvent";
"QFileOpenEvent";
never executed: return "QFileOpenEvent";
0
708-
709 case
never executed: case QEvent::NativeGesture:
QEvent::NativeGesture:
never executed: case QEvent::NativeGesture:
0
710 return
never executed: return "QNativeGestureEvent";
"QNativeGestureEvent";
never executed: return "QNativeGestureEvent";
0
711 case
never executed: case QEvent::Gesture:
QEvent::Gesture:
never executed: case QEvent::Gesture:
0
712 case
never executed: case QEvent::GestureOverride:
QEvent::GestureOverride:
never executed: case QEvent::GestureOverride:
0
713 return
never executed: return "QGestureEvent";
"QGestureEvent";
never executed: return "QGestureEvent";
0
714-
715 case
never executed: case QEvent::HoverEnter:
QEvent::HoverEnter:
never executed: case QEvent::HoverEnter:
0
716 case
never executed: case QEvent::HoverLeave:
QEvent::HoverLeave:
never executed: case QEvent::HoverLeave:
0
717 case
never executed: case QEvent::HoverMove:
QEvent::HoverMove:
never executed: case QEvent::HoverMove:
0
718 return
never executed: return "QHoverEvent";
"QHoverEvent";
never executed: return "QHoverEvent";
0
719 case
never executed: case QEvent::TabletEnterProximity:
QEvent::TabletEnterProximity:
never executed: case QEvent::TabletEnterProximity:
0
720 case
never executed: case QEvent::TabletLeaveProximity:
QEvent::TabletLeaveProximity:
never executed: case QEvent::TabletLeaveProximity:
0
721 case
never executed: case QEvent::TabletPress:
QEvent::TabletPress:
never executed: case QEvent::TabletPress:
0
722 case
never executed: case QEvent::TabletMove:
QEvent::TabletMove:
never executed: case QEvent::TabletMove:
0
723 case
never executed: case QEvent::TabletRelease:
QEvent::TabletRelease:
never executed: case QEvent::TabletRelease:
0
724 return
never executed: return "QTabletEvent";
"QTabletEvent";
never executed: return "QTabletEvent";
0
725 case
never executed: case QEvent::StatusTip:
QEvent::StatusTip:
never executed: case QEvent::StatusTip:
0
726 return
never executed: return "QStatusTipEvent";
"QStatusTipEvent";
never executed: return "QStatusTipEvent";
0
727 case
never executed: case QEvent::ToolTip:
QEvent::ToolTip:
never executed: case QEvent::ToolTip:
0
728 return
never executed: return "QHelpEvent";
"QHelpEvent";
never executed: return "QHelpEvent";
0
729 case
never executed: case QEvent::WindowStateChange:
QEvent::WindowStateChange:
never executed: case QEvent::WindowStateChange:
0
730 return
never executed: return "QWindowStateChangeEvent";
"QWindowStateChangeEvent";
never executed: return "QWindowStateChangeEvent";
0
731 case
never executed: case QEvent::Wheel:
QEvent::Wheel:
never executed: case QEvent::Wheel:
0
732 return
never executed: return "QWheelEvent";
"QWheelEvent";
never executed: return "QWheelEvent";
0
733 case
never executed: case QEvent::TouchBegin:
QEvent::TouchBegin:
never executed: case QEvent::TouchBegin:
0
734 case
never executed: case QEvent::TouchUpdate:
QEvent::TouchUpdate:
never executed: case QEvent::TouchUpdate:
0
735 case
never executed: case QEvent::TouchEnd:
QEvent::TouchEnd:
never executed: case QEvent::TouchEnd:
0
736 return
never executed: return "QTouchEvent";
"QTouchEvent";
never executed: return "QTouchEvent";
0
737 case
never executed: case QEvent::Shortcut:
QEvent::Shortcut:
never executed: case QEvent::Shortcut:
0
738 return
never executed: return "QShortcutEvent";
"QShortcutEvent";
never executed: return "QShortcutEvent";
0
739 case
never executed: case QEvent::InputMethod:
QEvent::InputMethod:
never executed: case QEvent::InputMethod:
0
740 return
never executed: return "QInputMethodEvent";
"QInputMethodEvent";
never executed: return "QInputMethodEvent";
0
741 case
never executed: case QEvent::InputMethodQuery:
QEvent::InputMethodQuery:
never executed: case QEvent::InputMethodQuery:
0
742 return
never executed: return "QInputMethodQueryEvent";
"QInputMethodQueryEvent";
never executed: return "QInputMethodQueryEvent";
0
743 case
never executed: case QEvent::OrientationChange:
QEvent::OrientationChange:
never executed: case QEvent::OrientationChange:
0
744 return
never executed: return "QScreenOrientationChangeEvent";
"QScreenOrientationChangeEvent";
never executed: return "QScreenOrientationChangeEvent";
0
745 case
never executed: case QEvent::ScrollPrepare:
QEvent::ScrollPrepare:
never executed: case QEvent::ScrollPrepare:
0
746 return
never executed: return "QScrollPrepareEvent";
"QScrollPrepareEvent";
never executed: return "QScrollPrepareEvent";
0
747 case
never executed: case QEvent::Scroll:
QEvent::Scroll:
never executed: case QEvent::Scroll:
0
748 return
never executed: return "QScrollEvent";
"QScrollEvent";
never executed: return "QScrollEvent";
0
749 case
never executed: case QEvent::GraphicsSceneMouseMove:
QEvent::GraphicsSceneMouseMove:
never executed: case QEvent::GraphicsSceneMouseMove:
0
750 case
never executed: case QEvent::GraphicsSceneMousePress:
QEvent::GraphicsSceneMousePress:
never executed: case QEvent::GraphicsSceneMousePress:
0
751 case
never executed: case QEvent::GraphicsSceneMouseRelease:
QEvent::GraphicsSceneMouseRelease:
never executed: case QEvent::GraphicsSceneMouseRelease:
0
752 case
never executed: case QEvent::GraphicsSceneMouseDoubleClick:
QEvent::GraphicsSceneMouseDoubleClick:
never executed: case QEvent::GraphicsSceneMouseDoubleClick:
0
753 return
never executed: return "QGraphicsSceneMouseEvent";
"QGraphicsSceneMouseEvent";
never executed: return "QGraphicsSceneMouseEvent";
0
754 case
never executed: case QEvent::GraphicsSceneContextMenu:
QEvent::GraphicsSceneContextMenu:
never executed: case QEvent::GraphicsSceneContextMenu:
0
755 case
never executed: case QEvent::GraphicsSceneHoverEnter:
QEvent::GraphicsSceneHoverEnter:
never executed: case QEvent::GraphicsSceneHoverEnter:
0
756 case
never executed: case QEvent::GraphicsSceneHoverMove:
QEvent::GraphicsSceneHoverMove:
never executed: case QEvent::GraphicsSceneHoverMove:
0
757 case
never executed: case QEvent::GraphicsSceneHoverLeave:
QEvent::GraphicsSceneHoverLeave:
never executed: case QEvent::GraphicsSceneHoverLeave:
0
758 case
never executed: case QEvent::GraphicsSceneHelp:
QEvent::GraphicsSceneHelp:
never executed: case QEvent::GraphicsSceneHelp:
0
759 case
never executed: case QEvent::GraphicsSceneDragEnter:
QEvent::GraphicsSceneDragEnter:
never executed: case QEvent::GraphicsSceneDragEnter:
0
760 case
never executed: case QEvent::GraphicsSceneDragMove:
QEvent::GraphicsSceneDragMove:
never executed: case QEvent::GraphicsSceneDragMove:
0
761 case
never executed: case QEvent::GraphicsSceneDragLeave:
QEvent::GraphicsSceneDragLeave:
never executed: case QEvent::GraphicsSceneDragLeave:
0
762 case
never executed: case QEvent::GraphicsSceneDrop:
QEvent::GraphicsSceneDrop:
never executed: case QEvent::GraphicsSceneDrop:
0
763 case
never executed: case QEvent::GraphicsSceneWheel:
QEvent::GraphicsSceneWheel:
never executed: case QEvent::GraphicsSceneWheel:
0
764 return
never executed: return "QGraphicsSceneEvent";
"QGraphicsSceneEvent";
never executed: return "QGraphicsSceneEvent";
0
765 case
never executed: case QEvent::Timer:
QEvent::Timer:
never executed: case QEvent::Timer:
0
766 return
never executed: return "QTimerEvent";
"QTimerEvent";
never executed: return "QTimerEvent";
0
767 case
never executed: case QEvent::PlatformSurface:
QEvent::PlatformSurface:
never executed: case QEvent::PlatformSurface:
0
768 return
never executed: return "QPlatformSurfaceEvent";
"QPlatformSurfaceEvent";
never executed: return "QPlatformSurfaceEvent";
0
769 default
never executed: default:
:
never executed: default:
0
770 break;
never executed: break;
0
771 }-
772 return
never executed: return "QEvent";
"QEvent";
never executed: return "QEvent";
0
773}-
774-
775-
776-
777static void formatDropEvent(QDebug d, const QDropEvent *e)-
778{-
779 const QEvent::Type type = e->type();-
780 d << eventClassName(type) << "(dropAction=";-
781 QtDebugUtils::formatQEnum(d, e->dropAction());-
782 d << ", proposedAction=";-
783 QtDebugUtils::formatQEnum(d, e->proposedAction());-
784 d << ", possibleActions=";-
785 QtDebugUtils::formatQFlags(d, e->possibleActions());-
786 d << ", posF=";-
787 QtDebugUtils::formatQPoint(d, e->posF());-
788 if (type == QEvent::DragMove
type == QEvent::DragMoveDescription
TRUEnever evaluated
FALSEnever evaluated
|| type == QEvent::DragEnter
type == QEvent::DragEnterDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
789 d << ", answerRect=" << static_cast<const QDragMoveEvent *>(e)->answerRect();
never executed: d << ", answerRect=" << static_cast<const QDragMoveEvent *>(e)->answerRect();
0
790 d << ", formats=" << e->mimeData()->formats();-
791 QtDebugUtils::formatNonNullQFlags(d, ", keyboardModifiers=", e->keyboardModifiers());-
792 d << ", ";-
793 QtDebugUtils::formatQFlags(d, e->mouseButtons());-
794}
never executed: end of block
0
795-
796-
797-
798-
799-
800static void formatTabletEvent(QDebug d, const QTabletEvent *e)-
801{-
802 const QEvent::Type type = e->type();-
803-
804 d << eventClassName(type) << '(';-
805 QtDebugUtils::formatQEnum(d, type);-
806 d << ", device=";-
807 QtDebugUtils::formatQEnum(d, e->device());-
808 d << ", pointerType=";-
809 QtDebugUtils::formatQEnum(d, e->pointerType());-
810 d << ", uniqueId=" << e->uniqueId()-
811 << ", pos=" << e->posF()-
812 << ", z=" << e->z()-
813 << ", xTilt=" << e->xTilt()-
814 << ", yTilt=" << e->yTilt()-
815 << ", ";-
816 QtDebugUtils::formatQFlags(d, e->buttons());-
817 if (type == QEvent::TabletPress
type == QEvent::TabletPressDescription
TRUEnever evaluated
FALSEnever evaluated
|| type == QEvent::TabletMove
type == QEvent::TabletMoveDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
818 d << ", pressure=" << e->pressure();
never executed: d << ", pressure=" << e->pressure();
0
819 if (e->device() == QTabletEvent::RotationStylus
e->device() ==...RotationStylusDescription
TRUEnever evaluated
FALSEnever evaluated
|| e->device() == QTabletEvent::FourDMouse
e->device() ==...nt::FourDMouseDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
820 d << ", rotation=" << e->rotation();
never executed: d << ", rotation=" << e->rotation();
0
821 if (e->device() == QTabletEvent::Airbrush
e->device() ==...vent::AirbrushDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
822 d << ", tangentialPressure=" << e->tangentialPressure();
never executed: d << ", tangentialPressure=" << e->tangentialPressure();
0
823}
never executed: end of block
0
824-
825-
826-
827QDebug operator<<(QDebug dbg, const QTouchEvent::TouchPoint &tp)-
828{-
829 QDebugStateSaver saver(dbg);-
830 dbg.nospace();-
831 dbg << "TouchPoint(" << tp.id() << " (";-
832 QtDebugUtils::formatQRect(dbg, tp.rect());-
833 dbg << ") ";-
834 QtDebugUtils::formatQEnum(dbg, tp.state());-
835 dbg << " press " << tp.pressure() << " vel " << tp.velocity()-
836 << " start (";-
837 QtDebugUtils::formatQPoint(dbg, tp.startPos());-
838 dbg << ") last (";-
839 QtDebugUtils::formatQPoint(dbg, tp.lastPos());-
840 dbg << ") delta (";-
841 QtDebugUtils::formatQPoint(dbg, tp.pos() - tp.lastPos());-
842 dbg << ')';-
843 return
never executed: return dbg;
dbg;
never executed: return dbg;
0
844}-
845-
846QDebug operator<<(QDebug dbg, const QEvent *e)-
847{-
848 QDebugStateSaver saver(dbg);-
849 dbg.nospace();-
850 if (!e
!eDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
851 dbg << "QEvent(this = 0x0)";-
852 return
never executed: return dbg;
dbg;
never executed: return dbg;
0
853 }-
854-
855 const QEvent::Type type = e->type();-
856 switch (type) {-
857 case
never executed: case QEvent::Expose:
QEvent::Expose:
never executed: case QEvent::Expose:
0
858 dbg << "QExposeEvent(" << static_cast<const QExposeEvent *>(e)->region() << ')';-
859 break;
never executed: break;
0
860 case
never executed: case QEvent::Paint:
QEvent::Paint:
never executed: case QEvent::Paint:
0
861 dbg << "QPaintEvent(" << static_cast<const QPaintEvent *>(e)->region() << ')';-
862 break;
never executed: break;
0
863 case
never executed: case QEvent::MouseButtonPress:
QEvent::MouseButtonPress:
never executed: case QEvent::MouseButtonPress:
0
864 case
never executed: case QEvent::MouseMove:
QEvent::MouseMove:
never executed: case QEvent::MouseMove:
0
865 case
never executed: case QEvent::MouseButtonRelease:
QEvent::MouseButtonRelease:
never executed: case QEvent::MouseButtonRelease:
0
866 case
never executed: case QEvent::MouseButtonDblClick:
QEvent::MouseButtonDblClick:
never executed: case QEvent::MouseButtonDblClick:
0
867 case
never executed: case QEvent::NonClientAreaMouseButtonPress:
QEvent::NonClientAreaMouseButtonPress:
never executed: case QEvent::NonClientAreaMouseButtonPress:
0
868 case
never executed: case QEvent::NonClientAreaMouseMove:
QEvent::NonClientAreaMouseMove:
never executed: case QEvent::NonClientAreaMouseMove:
0
869 case
never executed: case QEvent::NonClientAreaMouseButtonRelease:
QEvent::NonClientAreaMouseButtonRelease:
never executed: case QEvent::NonClientAreaMouseButtonRelease:
0
870 case
never executed: case QEvent::NonClientAreaMouseButtonDblClick:
QEvent::NonClientAreaMouseButtonDblClick:
never executed: case QEvent::NonClientAreaMouseButtonDblClick:
0
871 {-
872 const QMouseEvent *me = static_cast<const QMouseEvent*>(e);-
873 const Qt::MouseButton button = me->button();-
874 const Qt::MouseButtons buttons = me->buttons();-
875 dbg << "QMouseEvent(";-
876 QtDebugUtils::formatQEnum(dbg, type);-
877 if (type != QEvent::MouseMove
type != QEvent::MouseMoveDescription
TRUEnever evaluated
FALSEnever evaluated
&& type != QEvent::NonClientAreaMouseMove
type != QEvent...tAreaMouseMoveDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
878 dbg << ", ";-
879 QtDebugUtils::formatQEnum(dbg, button);-
880 }
never executed: end of block
0
881 if (buttons
buttonsDescription
TRUEnever evaluated
FALSEnever evaluated
&& button != buttons
button != buttonsDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
882 dbg << ", buttons=";-
883 QtDebugUtils::formatQFlags(dbg, buttons);-
884 }
never executed: end of block
0
885 QtDebugUtils::formatNonNullQFlags(dbg, ", ", me->modifiers());-
886 dbg << ", localPos=";-
887 QtDebugUtils::formatQPoint(dbg, me->localPos());-
888 dbg << ", screenPos=";-
889 QtDebugUtils::formatQPoint(dbg, me->screenPos());-
890 QtDebugUtils::formatNonNullQEnum(dbg, ", ", me->source());-
891 QtDebugUtils::formatNonNullQFlags(dbg, ", flags=", me->flags());-
892 dbg << ')';-
893 }-
894 break;
never executed: break;
0
895-
896 case
never executed: case QEvent::Wheel:
QEvent::Wheel:
never executed: case QEvent::Wheel:
{
0
897 const QWheelEvent *we = static_cast<const QWheelEvent *>(e);-
898 dbg << "QWheelEvent(" << "pixelDelta=" << we->pixelDelta() << ", angleDelta=" << we->angleDelta() << ')';-
899 }-
900 break;
never executed: break;
0
901-
902 case
never executed: case QEvent::KeyPress:
QEvent::KeyPress:
never executed: case QEvent::KeyPress:
0
903 case
never executed: case QEvent::KeyRelease:
QEvent::KeyRelease:
never executed: case QEvent::KeyRelease:
0
904 case
never executed: case QEvent::ShortcutOverride:
QEvent::ShortcutOverride:
never executed: case QEvent::ShortcutOverride:
0
905 {-
906 const QKeyEvent *ke = static_cast<const QKeyEvent *>(e);-
907 dbg << "QKeyEvent(";-
908 QtDebugUtils::formatQEnum(dbg, type);-
909 dbg << ", ";-
910 QtDebugUtils::formatQEnum(dbg, static_cast<Qt::Key>(ke->key()));-
911 QtDebugUtils::formatNonNullQFlags(dbg, ", ", ke->modifiers());-
912 if (!ke->text().isEmpty()
!ke->text().isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
913 dbg << ", text=" << ke->text();
never executed: dbg << ", text=" << ke->text();
0
914 if (ke->isAutoRepeat()
ke->isAutoRepeat()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
915 dbg << ", autorepeat, count=" << ke->count();
never executed: dbg << ", autorepeat, count=" << ke->count();
0
916 dbg << ')';-
917 }-
918 break;
never executed: break;
0
919 case
never executed: case QEvent::Shortcut:
QEvent::Shortcut:
never executed: case QEvent::Shortcut:
{
0
920 const QShortcutEvent *se = static_cast<const QShortcutEvent *>(e);-
921 dbg << "QShortcutEvent(" << se->key().toString() << ", id=" << se->shortcutId();-
922 if (se->isAmbiguous()
se->isAmbiguous()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
923 dbg << ", ambiguous";
never executed: dbg << ", ambiguous";
0
924 dbg << ')';-
925 }-
926 break;
never executed: break;
0
927 case
never executed: case QEvent::FocusAboutToChange:
QEvent::FocusAboutToChange:
never executed: case QEvent::FocusAboutToChange:
0
928 case
never executed: case QEvent::FocusIn:
QEvent::FocusIn:
never executed: case QEvent::FocusIn:
0
929 case
never executed: case QEvent::FocusOut:
QEvent::FocusOut:
never executed: case QEvent::FocusOut:
0
930 dbg << "QFocusEvent(";-
931 QtDebugUtils::formatQEnum(dbg, type);-
932 dbg << ", ";-
933 QtDebugUtils::formatQEnum(dbg, static_cast<const QFocusEvent *>(e)->reason());-
934 dbg << ')';-
935 break;
never executed: break;
0
936 case
never executed: case QEvent::Move:
QEvent::Move:
never executed: case QEvent::Move:
{
0
937 const QMoveEvent *me = static_cast<const QMoveEvent *>(e);-
938 dbg << "QMoveEvent(";-
939 QtDebugUtils::formatQPoint(dbg, me->pos());-
940 if (!me->spontaneous()
!me->spontaneous()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
941 dbg << ", non-spontaneous";
never executed: dbg << ", non-spontaneous";
0
942 dbg << ')';-
943 }-
944 break;
never executed: break;
0
945 case
never executed: case QEvent::Resize:
QEvent::Resize:
never executed: case QEvent::Resize:
{
0
946 const QResizeEvent *re = static_cast<const QResizeEvent *>(e);-
947 dbg << "QResizeEvent(";-
948 QtDebugUtils::formatQSize(dbg, re->size());-
949 if (!re->spontaneous()
!re->spontaneous()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
950 dbg << ", non-spontaneous";
never executed: dbg << ", non-spontaneous";
0
951 dbg << ')';-
952 }-
953 break;
never executed: break;
0
954-
955 case
never executed: case QEvent::DragEnter:
QEvent::DragEnter:
never executed: case QEvent::DragEnter:
0
956 case
never executed: case QEvent::DragMove:
QEvent::DragMove:
never executed: case QEvent::DragMove:
0
957 case
never executed: case QEvent::Drop:
QEvent::Drop:
never executed: case QEvent::Drop:
0
958 formatDropEvent(dbg, static_cast<const QDropEvent *>(e));-
959 break;
never executed: break;
0
960-
961 case
never executed: case QEvent::InputMethod:
QEvent::InputMethod:
never executed: case QEvent::InputMethod:
0
962 formatInputMethodEvent(dbg, static_cast<const QInputMethodEvent *>(e));-
963 break;
never executed: break;
0
964 case
never executed: case QEvent::InputMethodQuery:
QEvent::InputMethodQuery:
never executed: case QEvent::InputMethodQuery:
0
965 formatInputMethodQueryEvent(dbg, static_cast<const QInputMethodQueryEvent *>(e));-
966 break;
never executed: break;
0
967 case
never executed: case QEvent::TouchBegin:
QEvent::TouchBegin:
never executed: case QEvent::TouchBegin:
0
968 case
never executed: case QEvent::TouchUpdate:
QEvent::TouchUpdate:
never executed: case QEvent::TouchUpdate:
0
969 case
never executed: case QEvent::TouchEnd:
QEvent::TouchEnd:
never executed: case QEvent::TouchEnd:
0
970 formatTouchEvent(dbg, *static_cast<const QTouchEvent*>(e));-
971 break;
never executed: break;
0
972 case
never executed: case QEvent::ChildAdded:
QEvent::ChildAdded:
never executed: case QEvent::ChildAdded:
0
973 case
never executed: case QEvent::ChildPolished:
QEvent::ChildPolished:
never executed: case QEvent::ChildPolished:
0
974 case
never executed: case QEvent::ChildRemoved:
QEvent::ChildRemoved:
never executed: case QEvent::ChildRemoved:
0
975 dbg << "QChildEvent(";-
976 QtDebugUtils::formatQEnum(dbg, type);-
977 dbg << ", " << (static_cast<const QChildEvent*>(e))->child() << ')';-
978 break;
never executed: break;
0
979-
980 case
never executed: case QEvent::NativeGesture:
QEvent::NativeGesture:
never executed: case QEvent::NativeGesture:
{
0
981 const QNativeGestureEvent *ne = static_cast<const QNativeGestureEvent *>(e);-
982 dbg << "QNativeGestureEvent(";-
983 QtDebugUtils::formatQEnum(dbg, ne->gestureType());-
984 dbg << "localPos=";-
985 QtDebugUtils::formatQPoint(dbg, ne->localPos());-
986 dbg << ", value=" << ne->value() << ')';-
987 }-
988 break;
never executed: break;
0
989-
990 case
never executed: case QEvent::ApplicationStateChange:
QEvent::ApplicationStateChange:
never executed: case QEvent::ApplicationStateChange:
0
991 dbg << "QApplicationStateChangeEvent(";-
992 QtDebugUtils::formatQEnum(dbg, static_cast<const QApplicationStateChangeEvent *>(e)->applicationState());-
993 dbg << ')';-
994 break;
never executed: break;
0
995-
996 case
never executed: case QEvent::ContextMenu:
QEvent::ContextMenu:
never executed: case QEvent::ContextMenu:
0
997 dbg << "QContextMenuEvent(" << static_cast<const QContextMenuEvent *>(e)->pos() << ')';-
998 break;
never executed: break;
0
999-
1000-
1001 case
never executed: case QEvent::TabletEnterProximity:
QEvent::TabletEnterProximity:
never executed: case QEvent::TabletEnterProximity:
0
1002 case
never executed: case QEvent::TabletLeaveProximity:
QEvent::TabletLeaveProximity:
never executed: case QEvent::TabletLeaveProximity:
0
1003 case
never executed: case QEvent::TabletPress:
QEvent::TabletPress:
never executed: case QEvent::TabletPress:
0
1004 case
never executed: case QEvent::TabletMove:
QEvent::TabletMove:
never executed: case QEvent::TabletMove:
0
1005 case
never executed: case QEvent::TabletRelease:
QEvent::TabletRelease:
never executed: case QEvent::TabletRelease:
0
1006 formatTabletEvent(dbg, static_cast<const QTabletEvent *>(e));-
1007 break;
never executed: break;
0
1008-
1009 case
never executed: case QEvent::Enter:
QEvent::Enter:
never executed: case QEvent::Enter:
0
1010 dbg << "QEnterEvent(" << static_cast<const QEnterEvent *>(e)->pos() << ')';-
1011 break;
never executed: break;
0
1012 case
never executed: case QEvent::Timer:
QEvent::Timer:
never executed: case QEvent::Timer:
0
1013 dbg << "QTimerEvent(id=" << static_cast<const QTimerEvent *>(e)->timerId() << ')';-
1014 break;
never executed: break;
0
1015 case
never executed: case QEvent::PlatformSurface:
QEvent::PlatformSurface:
never executed: case QEvent::PlatformSurface:
0
1016 dbg << "QPlatformSurfaceEvent(surfaceEventType=";-
1017 switch (static_cast<const QPlatformSurfaceEvent *>(e)->surfaceEventType()) {-
1018 case
never executed: case QPlatformSurfaceEvent::SurfaceCreated:
QPlatformSurfaceEvent::SurfaceCreated:
never executed: case QPlatformSurfaceEvent::SurfaceCreated:
0
1019 dbg << "SurfaceCreated";-
1020 break;
never executed: break;
0
1021 case
never executed: case QPlatformSurfaceEvent::SurfaceAboutToBeDestroyed:
QPlatformSurfaceEvent::SurfaceAboutToBeDestroyed:
never executed: case QPlatformSurfaceEvent::SurfaceAboutToBeDestroyed:
0
1022 dbg << "SurfaceAboutToBeDestroyed";-
1023 break;
never executed: break;
0
1024 }-
1025 dbg << ')';-
1026 break;
never executed: break;
0
1027 default
never executed: default:
:
never executed: default:
0
1028 dbg << eventClassName(type) << '(';-
1029 QtDebugUtils::formatQEnum(dbg, type);-
1030 dbg << ", " << (const void *)e << ')';-
1031 break;
never executed: break;
0
1032 }-
1033 return
never executed: return dbg;
dbg;
never executed: return dbg;
0
1034}-
1035QWindowStateChangeEvent::QWindowStateChangeEvent(Qt::WindowStates s, bool isOverride)-
1036 : QEvent(WindowStateChange), ostate(s), m_override(isOverride)-
1037{-
1038}
never executed: end of block
0
1039-
1040-
1041-
1042bool QWindowStateChangeEvent::isOverride() const-
1043{-
1044 return
never executed: return m_override;
m_override;
never executed: return m_override;
0
1045}-
1046-
1047-
1048-
1049QWindowStateChangeEvent::~QWindowStateChangeEvent()-
1050{-
1051}-
1052QTouchEvent::QTouchEvent(QEvent::Type eventType,-
1053 QTouchDevice *device,-
1054 Qt::KeyboardModifiers modifiers,-
1055 Qt::TouchPointStates touchPointStates,-
1056 const QList<QTouchEvent::TouchPoint> &touchPoints)-
1057 : QInputEvent(eventType, modifiers),-
1058 _window(0),-
1059 _target(0),-
1060 _device(device),-
1061 _touchPointStates(touchPointStates),-
1062 _touchPoints(touchPoints)-
1063{ }
never executed: end of block
0
1064-
1065-
1066-
1067-
1068QTouchEvent::~QTouchEvent()-
1069{ }-
1070QTouchEvent::TouchPoint::TouchPoint(int id)-
1071 : d(new QTouchEventTouchPointPrivate(id))-
1072{ }
never executed: end of block
0
1073-
1074-
1075-
1076-
1077-
1078-
1079-
1080QTouchEvent::TouchPoint::TouchPoint(const QTouchEvent::TouchPoint &other)-
1081 : d(other.d)-
1082{-
1083 d->ref.ref();-
1084}
never executed: end of block
0
1085-
1086-
1087-
1088-
1089-
1090-
1091QTouchEvent::TouchPoint::~TouchPoint()-
1092{-
1093 if (d
dDescription
TRUEnever evaluated
FALSEnever evaluated
&& !d->ref.deref()
!d->ref.deref()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1094 delete d;
never executed: delete d;
0
1095}
never executed: end of block
0
1096-
1097-
1098-
1099-
1100-
1101-
1102-
1103int QTouchEvent::TouchPoint::id() const-
1104{-
1105 return
never executed: return d->id;
d->id;
never executed: return d->id;
0
1106}-
1107-
1108-
1109-
1110-
1111Qt::TouchPointState QTouchEvent::TouchPoint::state() const-
1112{-
1113 return
never executed: return Qt::TouchPointState(int(d->state));
Qt::TouchPointState(int(d->state));
never executed: return Qt::TouchPointState(int(d->state));
0
1114}-
1115-
1116-
1117-
1118-
1119-
1120-
1121-
1122QPointF QTouchEvent::TouchPoint::pos() const-
1123{-
1124 return
never executed: return d->rect.center();
d->rect.center();
never executed: return d->rect.center();
0
1125}-
1126QPointF QTouchEvent::TouchPoint::scenePos() const-
1127{-
1128 return
never executed: return d->sceneRect.center();
d->sceneRect.center();
never executed: return d->sceneRect.center();
0
1129}-
1130-
1131-
1132-
1133-
1134-
1135-
1136QPointF QTouchEvent::TouchPoint::screenPos() const-
1137{-
1138 return
never executed: return d->screenRect.center();
d->screenRect.center();
never executed: return d->screenRect.center();
0
1139}-
1140QPointF QTouchEvent::TouchPoint::normalizedPos() const-
1141{-
1142 return
never executed: return d->normalizedPos;
d->normalizedPos;
never executed: return d->normalizedPos;
0
1143}-
1144-
1145-
1146-
1147-
1148-
1149-
1150-
1151QPointF QTouchEvent::TouchPoint::startPos() const-
1152{-
1153 return
never executed: return d->startPos;
d->startPos;
never executed: return d->startPos;
0
1154}-
1155QPointF QTouchEvent::TouchPoint::startScenePos() const-
1156{-
1157 return
never executed: return d->startScenePos;
d->startScenePos;
never executed: return d->startScenePos;
0
1158}-
1159-
1160-
1161-
1162-
1163-
1164-
1165QPointF QTouchEvent::TouchPoint::startScreenPos() const-
1166{-
1167 return
never executed: return d->startScreenPos;
d->startScreenPos;
never executed: return d->startScreenPos;
0
1168}-
1169QPointF QTouchEvent::TouchPoint::startNormalizedPos() const-
1170{-
1171 return
never executed: return d->startNormalizedPos;
d->startNormalizedPos;
never executed: return d->startNormalizedPos;
0
1172}-
1173-
1174-
1175-
1176-
1177-
1178-
1179-
1180QPointF QTouchEvent::TouchPoint::lastPos() const-
1181{-
1182 return
never executed: return d->lastPos;
d->lastPos;
never executed: return d->lastPos;
0
1183}-
1184QPointF QTouchEvent::TouchPoint::lastScenePos() const-
1185{-
1186 return
never executed: return d->lastScenePos;
d->lastScenePos;
never executed: return d->lastScenePos;
0
1187}-
1188-
1189-
1190-
1191-
1192-
1193-
1194-
1195QPointF QTouchEvent::TouchPoint::lastScreenPos() const-
1196{-
1197 return
never executed: return d->lastScreenPos;
d->lastScreenPos;
never executed: return d->lastScreenPos;
0
1198}-
1199QPointF QTouchEvent::TouchPoint::lastNormalizedPos() const-
1200{-
1201 return
never executed: return d->lastNormalizedPos;
d->lastNormalizedPos;
never executed: return d->lastNormalizedPos;
0
1202}-
1203QRectF QTouchEvent::TouchPoint::rect() const-
1204{-
1205 return
never executed: return d->rect;
d->rect;
never executed: return d->rect;
0
1206}-
1207QRectF QTouchEvent::TouchPoint::sceneRect() const-
1208{-
1209 return
never executed: return d->sceneRect;
d->sceneRect;
never executed: return d->sceneRect;
0
1210}-
1211QRectF QTouchEvent::TouchPoint::screenRect() const-
1212{-
1213 return
never executed: return d->screenRect;
d->screenRect;
never executed: return d->screenRect;
0
1214}-
1215-
1216-
1217-
1218-
1219-
1220qreal QTouchEvent::TouchPoint::pressure() const-
1221{-
1222 return
never executed: return d->pressure;
d->pressure;
never executed: return d->pressure;
0
1223}-
1224QVector2D QTouchEvent::TouchPoint::velocity() const-
1225{-
1226 return
never executed: return d->velocity;
d->velocity;
never executed: return d->velocity;
0
1227}-
1228-
1229-
1230-
1231-
1232-
1233-
1234QTouchEvent::TouchPoint::InfoFlags QTouchEvent::TouchPoint::flags() const-
1235{-
1236 return
never executed: return d->flags;
d->flags;
never executed: return d->flags;
0
1237}-
1238QVector<QPointF> QTouchEvent::TouchPoint::rawScreenPositions() const-
1239{-
1240 return
never executed: return d->rawScreenPositions;
d->rawScreenPositions;
never executed: return d->rawScreenPositions;
0
1241}-
1242-
1243-
1244void QTouchEvent::TouchPoint::setId(int id)-
1245{-
1246 if (d->ref.load() != 1
d->ref.load() != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1247 d = d->detach();
never executed: d = d->detach();
0
1248 d->id = id;-
1249}
never executed: end of block
0
1250-
1251-
1252void QTouchEvent::TouchPoint::setState(Qt::TouchPointStates state)-
1253{-
1254 if (d->ref.load() != 1
d->ref.load() != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1255 d = d->detach();
never executed: d = d->detach();
0
1256 d->state = state;-
1257}
never executed: end of block
0
1258-
1259-
1260void QTouchEvent::TouchPoint::setPos(const QPointF &pos)-
1261{-
1262 if (d->ref.load() != 1
d->ref.load() != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1263 d = d->detach();
never executed: d = d->detach();
0
1264 d->rect.moveCenter(pos);-
1265}
never executed: end of block
0
1266-
1267-
1268void QTouchEvent::TouchPoint::setScenePos(const QPointF &scenePos)-
1269{-
1270 if (d->ref.load() != 1
d->ref.load() != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1271 d = d->detach();
never executed: d = d->detach();
0
1272 d->sceneRect.moveCenter(scenePos);-
1273}
never executed: end of block
0
1274-
1275-
1276void QTouchEvent::TouchPoint::setScreenPos(const QPointF &screenPos)-
1277{-
1278 if (d->ref.load() != 1
d->ref.load() != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1279 d = d->detach();
never executed: d = d->detach();
0
1280 d->screenRect.moveCenter(screenPos);-
1281}
never executed: end of block
0
1282-
1283-
1284void QTouchEvent::TouchPoint::setNormalizedPos(const QPointF &normalizedPos)-
1285{-
1286 if (d->ref.load() != 1
d->ref.load() != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1287 d = d->detach();
never executed: d = d->detach();
0
1288 d->normalizedPos = normalizedPos;-
1289}
never executed: end of block
0
1290-
1291-
1292void QTouchEvent::TouchPoint::setStartPos(const QPointF &startPos)-
1293{-
1294 if (d->ref.load() != 1
d->ref.load() != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1295 d = d->detach();
never executed: d = d->detach();
0
1296 d->startPos = startPos;-
1297}
never executed: end of block
0
1298-
1299-
1300void QTouchEvent::TouchPoint::setStartScenePos(const QPointF &startScenePos)-
1301{-
1302 if (d->ref.load() != 1
d->ref.load() != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1303 d = d->detach();
never executed: d = d->detach();
0
1304 d->startScenePos = startScenePos;-
1305}
never executed: end of block
0
1306-
1307-
1308void QTouchEvent::TouchPoint::setStartScreenPos(const QPointF &startScreenPos)-
1309{-
1310 if (d->ref.load() != 1
d->ref.load() != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1311 d = d->detach();
never executed: d = d->detach();
0
1312 d->startScreenPos = startScreenPos;-
1313}
never executed: end of block
0
1314-
1315-
1316void QTouchEvent::TouchPoint::setStartNormalizedPos(const QPointF &startNormalizedPos)-
1317{-
1318 if (d->ref.load() != 1
d->ref.load() != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1319 d = d->detach();
never executed: d = d->detach();
0
1320 d->startNormalizedPos = startNormalizedPos;-
1321}
never executed: end of block
0
1322-
1323-
1324void QTouchEvent::TouchPoint::setLastPos(const QPointF &lastPos)-
1325{-
1326 if (d->ref.load() != 1
d->ref.load() != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1327 d = d->detach();
never executed: d = d->detach();
0
1328 d->lastPos = lastPos;-
1329}
never executed: end of block
0
1330-
1331-
1332void QTouchEvent::TouchPoint::setLastScenePos(const QPointF &lastScenePos)-
1333{-
1334 if (d->ref.load() != 1
d->ref.load() != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1335 d = d->detach();
never executed: d = d->detach();
0
1336 d->lastScenePos = lastScenePos;-
1337}
never executed: end of block
0
1338-
1339-
1340void QTouchEvent::TouchPoint::setLastScreenPos(const QPointF &lastScreenPos)-
1341{-
1342 if (d->ref.load() != 1
d->ref.load() != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1343 d = d->detach();
never executed: d = d->detach();
0
1344 d->lastScreenPos = lastScreenPos;-
1345}
never executed: end of block
0
1346-
1347-
1348void QTouchEvent::TouchPoint::setLastNormalizedPos(const QPointF &lastNormalizedPos)-
1349{-
1350 if (d->ref.load() != 1
d->ref.load() != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1351 d = d->detach();
never executed: d = d->detach();
0
1352 d->lastNormalizedPos = lastNormalizedPos;-
1353}
never executed: end of block
0
1354-
1355-
1356void QTouchEvent::TouchPoint::setRect(const QRectF &rect)-
1357{-
1358 if (d->ref.load() != 1
d->ref.load() != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1359 d = d->detach();
never executed: d = d->detach();
0
1360 d->rect = rect;-
1361}
never executed: end of block
0
1362-
1363-
1364void QTouchEvent::TouchPoint::setSceneRect(const QRectF &sceneRect)-
1365{-
1366 if (d->ref.load() != 1
d->ref.load() != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1367 d = d->detach();
never executed: d = d->detach();
0
1368 d->sceneRect = sceneRect;-
1369}
never executed: end of block
0
1370-
1371-
1372void QTouchEvent::TouchPoint::setScreenRect(const QRectF &screenRect)-
1373{-
1374 if (d->ref.load() != 1
d->ref.load() != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1375 d = d->detach();
never executed: d = d->detach();
0
1376 d->screenRect = screenRect;-
1377}
never executed: end of block
0
1378-
1379-
1380void QTouchEvent::TouchPoint::setPressure(qreal pressure)-
1381{-
1382 if (d->ref.load() != 1
d->ref.load() != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1383 d = d->detach();
never executed: d = d->detach();
0
1384 d->pressure = pressure;-
1385}
never executed: end of block
0
1386-
1387-
1388void QTouchEvent::TouchPoint::setVelocity(const QVector2D &v)-
1389{-
1390 if (d->ref.load() != 1
d->ref.load() != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1391 d = d->detach();
never executed: d = d->detach();
0
1392 d->velocity = v;-
1393}
never executed: end of block
0
1394-
1395-
1396void QTouchEvent::TouchPoint::setRawScreenPositions(const QVector<QPointF> &positions)-
1397{-
1398 if (d->ref.load() != 1
d->ref.load() != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1399 d = d->detach();
never executed: d = d->detach();
0
1400 d->rawScreenPositions = positions;-
1401}
never executed: end of block
0
1402-
1403-
1404-
1405-
1406void QTouchEvent::TouchPoint::setFlags(InfoFlags flags)-
1407{-
1408 if (d->ref.load() != 1
d->ref.load() != 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1409 d = d->detach();
never executed: d = d->detach();
0
1410 d->flags = flags;-
1411}
never executed: end of block
0
1412QScrollPrepareEvent::QScrollPrepareEvent(const QPointF &startPos)-
1413 : QEvent(QEvent::ScrollPrepare), m_target(0), m_startPos(startPos)-
1414{-
1415 (void)m_target;;-
1416}
never executed: end of block
0
1417-
1418-
1419-
1420-
1421QScrollPrepareEvent::~QScrollPrepareEvent()-
1422{-
1423}-
1424-
1425-
1426-
1427-
1428QPointF QScrollPrepareEvent::startPos() const-
1429{-
1430 return
never executed: return m_startPos;
m_startPos;
never executed: return m_startPos;
0
1431}-
1432-
1433-
1434-
1435-
1436-
1437-
1438QSizeF QScrollPrepareEvent::viewportSize() const-
1439{-
1440 return
never executed: return m_viewportSize;
m_viewportSize;
never executed: return m_viewportSize;
0
1441}-
1442-
1443-
1444-
1445-
1446QRectF QScrollPrepareEvent::contentPosRange() const-
1447{-
1448 return
never executed: return m_contentPosRange;
m_contentPosRange;
never executed: return m_contentPosRange;
0
1449}-
1450-
1451-
1452-
1453-
1454QPointF QScrollPrepareEvent::contentPos() const-
1455{-
1456 return
never executed: return m_contentPos;
m_contentPos;
never executed: return m_contentPos;
0
1457}-
1458-
1459-
1460-
1461-
1462-
1463-
1464-
1465void QScrollPrepareEvent::setViewportSize(const QSizeF &size)-
1466{-
1467 m_viewportSize = size;-
1468}
never executed: end of block
0
1469-
1470-
1471-
1472-
1473-
1474-
1475void QScrollPrepareEvent::setContentPosRange(const QRectF &rect)-
1476{-
1477 m_contentPosRange = rect;-
1478}
never executed: end of block
0
1479-
1480-
1481-
1482-
1483-
1484-
1485void QScrollPrepareEvent::setContentPos(const QPointF &pos)-
1486{-
1487 m_contentPos = pos;-
1488}
never executed: end of block
0
1489QScrollEvent::QScrollEvent(const QPointF &contentPos, const QPointF &overshootDistance, ScrollState scrollState)-
1490 : QEvent(QEvent::Scroll), m_contentPos(contentPos), m_overshoot(overshootDistance), m_state(scrollState)-
1491{-
1492}
never executed: end of block
0
1493-
1494-
1495-
1496-
1497QScrollEvent::~QScrollEvent()-
1498{-
1499}-
1500-
1501-
1502-
1503-
1504QPointF QScrollEvent::contentPos() const-
1505{-
1506 return
never executed: return m_contentPos;
m_contentPos;
never executed: return m_contentPos;
0
1507}-
1508-
1509-
1510-
1511-
1512-
1513-
1514-
1515QPointF QScrollEvent::overshootDistance() const-
1516{-
1517 return
never executed: return m_overshoot;
m_overshoot;
never executed: return m_overshoot;
0
1518}-
1519QScrollEvent::ScrollState QScrollEvent::scrollState() const-
1520{-
1521 return
never executed: return m_state;
m_state;
never executed: return m_state;
0
1522}-
1523-
1524-
1525-
1526-
1527-
1528QScreenOrientationChangeEvent::QScreenOrientationChangeEvent(QScreen *screen, Qt::ScreenOrientation screenOrientation)-
1529 : QEvent(QEvent::OrientationChange), m_screen(screen), m_orientation(screenOrientation)-
1530{-
1531}
never executed: end of block
0
1532-
1533-
1534-
1535-
1536QScreenOrientationChangeEvent::~QScreenOrientationChangeEvent()-
1537{-
1538}-
1539-
1540-
1541-
1542-
1543QScreen *QScreenOrientationChangeEvent::screen() const-
1544{-
1545 return
never executed: return m_screen;
m_screen;
never executed: return m_screen;
0
1546}-
1547-
1548-
1549-
1550-
1551Qt::ScreenOrientation QScreenOrientationChangeEvent::orientation() const-
1552{-
1553 return
never executed: return m_orientation;
m_orientation;
never executed: return m_orientation;
0
1554}-
1555-
1556-
1557-
1558-
1559-
1560QApplicationStateChangeEvent::QApplicationStateChangeEvent(Qt::ApplicationState applicationState)-
1561 : QEvent(QEvent::ApplicationStateChange), m_applicationState(applicationState)-
1562{-
1563}
never executed: end of block
0
1564-
1565-
1566-
1567-
1568Qt::ApplicationState QApplicationStateChangeEvent::applicationState() const-
1569{-
1570 return
never executed: return m_applicationState;
m_applicationState;
never executed: return m_applicationState;
0
1571}-
1572-
1573-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9