| Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/gui/kernel/qwindowsysteminterface.cpp | 
| Switch to Source code | Preprocessed file | 
| Line | Source | Count | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||
| 2 | - | |||||||||||||
| 3 | - | |||||||||||||
| 4 | - | |||||||||||||
| 5 | QElapsedTimer QWindowSystemInterfacePrivate::eventTime; | - | ||||||||||||
| 6 | bool QWindowSystemInterfacePrivate::synchronousWindowSystemEvents = false; | - | ||||||||||||
| 7 | QWaitCondition QWindowSystemInterfacePrivate::eventsFlushed; | - | ||||||||||||
| 8 | QMutex QWindowSystemInterfacePrivate::flushEventMutex; | - | ||||||||||||
| 9 | QAtomicInt QWindowSystemInterfacePrivate::eventAccepted; | - | ||||||||||||
| 10 | QWindowSystemEventHandler *QWindowSystemInterfacePrivate::eventHandler; | - | ||||||||||||
| 11 | - | |||||||||||||
| 12 | - | |||||||||||||
| 13 | - | |||||||||||||
| 14 | - | |||||||||||||
| 15 | - | |||||||||||||
| 16 | - | |||||||||||||
| 17 | QWindowSystemInterfacePrivate::WindowSystemEventList QWindowSystemInterfacePrivate::windowSystemEventQueue; | - | ||||||||||||
| 18 | - | |||||||||||||
| 19 | extern QPointer<QWindow> qt_last_mouse_receiver; | - | ||||||||||||
| 20 | void QWindowSystemInterface::handleEnterEvent(QWindow *tlw, const QPointF &local, const QPointF &global) | - | ||||||||||||
| 21 | { | - | ||||||||||||
| 22 |     if (tlw
  | 0 | ||||||||||||
| 23 | QWindowSystemInterfacePrivate::EnterEvent *e | - | ||||||||||||
| 24 | = new QWindowSystemInterfacePrivate::EnterEvent(tlw, QHighDpi::fromNativeLocalPosition(local, tlw), QHighDpi::fromNativePixels(global, tlw)); | - | ||||||||||||
| 25 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 26 |     } never executed:  end of block | 0 | ||||||||||||
| 27 | } never executed:  end of block | 0 | ||||||||||||
| 28 | - | |||||||||||||
| 29 | void QWindowSystemInterface::handleLeaveEvent(QWindow *tlw) | - | ||||||||||||
| 30 | { | - | ||||||||||||
| 31 | QWindowSystemInterfacePrivate::LeaveEvent *e = new QWindowSystemInterfacePrivate::LeaveEvent(tlw); | - | ||||||||||||
| 32 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 33 | } never executed:  end of block | 0 | ||||||||||||
| 34 | void QWindowSystemInterface::handleEnterLeaveEvent(QWindow *enter, QWindow *leave, const QPointF &local, const QPointF& global) | - | ||||||||||||
| 35 | { | - | ||||||||||||
| 36 | bool wasSynchronous = QWindowSystemInterfacePrivate::synchronousWindowSystemEvents; | - | ||||||||||||
| 37 |     if (wasSynchronous
  | 0 | ||||||||||||
| 38 |         setSynchronousWindowSystemEvents(false); never executed:  setSynchronousWindowSystemEvents(false); | 0 | ||||||||||||
| 39 | handleLeaveEvent(leave); | - | ||||||||||||
| 40 | handleEnterEvent(enter, local, global); | - | ||||||||||||
| 41 |     if (wasSynchronous
  | 0 | ||||||||||||
| 42 | flushWindowSystemEvents(); | - | ||||||||||||
| 43 | setSynchronousWindowSystemEvents(true); | - | ||||||||||||
| 44 |     } never executed:  end of block | 0 | ||||||||||||
| 45 | } never executed:  end of block | 0 | ||||||||||||
| 46 | - | |||||||||||||
| 47 | void QWindowSystemInterface::handleWindowActivated(QWindow *tlw, Qt::FocusReason r) | - | ||||||||||||
| 48 | { | - | ||||||||||||
| 49 | QWindowSystemInterfacePrivate::ActivatedWindowEvent *e = | - | ||||||||||||
| 50 | new QWindowSystemInterfacePrivate::ActivatedWindowEvent(tlw, r); | - | ||||||||||||
| 51 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 52 | } never executed:  end of block | 0 | ||||||||||||
| 53 | - | |||||||||||||
| 54 | void QWindowSystemInterface::handleWindowStateChanged(QWindow *tlw, Qt::WindowState newState) | - | ||||||||||||
| 55 | { | - | ||||||||||||
| 56 | QWindowSystemInterfacePrivate::WindowStateChangedEvent *e = | - | ||||||||||||
| 57 | new QWindowSystemInterfacePrivate::WindowStateChangedEvent(tlw, newState); | - | ||||||||||||
| 58 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 59 | } never executed:  end of block | 0 | ||||||||||||
| 60 | - | |||||||||||||
| 61 | void QWindowSystemInterface::handleWindowScreenChanged(QWindow *tlw, QScreen *screen) | - | ||||||||||||
| 62 | { | - | ||||||||||||
| 63 | QWindowSystemInterfacePrivate::WindowScreenChangedEvent *e = | - | ||||||||||||
| 64 | new QWindowSystemInterfacePrivate::WindowScreenChangedEvent(tlw, screen); | - | ||||||||||||
| 65 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 66 | } never executed:  end of block | 0 | ||||||||||||
| 67 | - | |||||||||||||
| 68 | void QWindowSystemInterface::handleApplicationStateChanged(Qt::ApplicationState newState, bool forcePropagate) | - | ||||||||||||
| 69 | { | - | ||||||||||||
| 70 | ((!(QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::ApplicationState))) ? qt_assert("QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::ApplicationState)",__FILE__,135) : qt_noop()); | - | ||||||||||||
| 71 | QWindowSystemInterfacePrivate::ApplicationStateChangedEvent *e = | - | ||||||||||||
| 72 | new QWindowSystemInterfacePrivate::ApplicationStateChangedEvent(newState, forcePropagate); | - | ||||||||||||
| 73 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 74 | } never executed:  end of block | 0 | ||||||||||||
| 75 | - | |||||||||||||
| 76 | - | |||||||||||||
| 77 | - | |||||||||||||
| 78 | - | |||||||||||||
| 79 | void QWindowSystemInterface::handleGeometryChange(QWindow *tlw, const QRect &newRect, const QRect &oldRect) | - | ||||||||||||
| 80 | { | - | ||||||||||||
| 81 | QWindowSystemInterfacePrivate::GeometryChangeEvent *e = new QWindowSystemInterfacePrivate::GeometryChangeEvent(tlw, QHighDpi::fromNativePixels(newRect, tlw), QHighDpi::fromNativePixels(oldRect, tlw)); | - | ||||||||||||
| 82 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 83 | } never executed:  end of block | 0 | ||||||||||||
| 84 | - | |||||||||||||
| 85 | void QWindowSystemInterface::handleCloseEvent(QWindow *tlw, bool *accepted) | - | ||||||||||||
| 86 | { | - | ||||||||||||
| 87 |     if (tlw
  | 0 | ||||||||||||
| 88 | QWindowSystemInterfacePrivate::CloseEvent *e = | - | ||||||||||||
| 89 | new QWindowSystemInterfacePrivate::CloseEvent(tlw, accepted); | - | ||||||||||||
| 90 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 91 |     } never executed:  end of block | 0 | ||||||||||||
| 92 | } never executed:  end of block | 0 | ||||||||||||
| 93 | - | |||||||||||||
| 94 | - | |||||||||||||
| 95 | - | |||||||||||||
| 96 | - | |||||||||||||
| 97 | - | |||||||||||||
| 98 | - | |||||||||||||
| 99 | void QWindowSystemInterface::handleMouseEvent(QWindow *w, const QPointF & local, const QPointF & global, Qt::MouseButtons b, | - | ||||||||||||
| 100 | Qt::KeyboardModifiers mods, Qt::MouseEventSource source) | - | ||||||||||||
| 101 | { | - | ||||||||||||
| 102 | unsigned long time = QWindowSystemInterfacePrivate::eventTime.elapsed(); | - | ||||||||||||
| 103 | handleMouseEvent(w, time, local, global, b, mods, source); | - | ||||||||||||
| 104 | } never executed:  end of block | 0 | ||||||||||||
| 105 | - | |||||||||||||
| 106 | void QWindowSystemInterface::handleMouseEvent(QWindow *w, ulong timestamp, const QPointF & local, const QPointF & global, Qt::MouseButtons b, | - | ||||||||||||
| 107 | Qt::KeyboardModifiers mods, Qt::MouseEventSource source) | - | ||||||||||||
| 108 | { | - | ||||||||||||
| 109 | QWindowSystemInterfacePrivate::MouseEvent * e = | - | ||||||||||||
| 110 | new QWindowSystemInterfacePrivate::MouseEvent(w, timestamp, QHighDpi::fromNativeLocalPosition(local, w), QHighDpi::fromNativePixels(global, w), b, mods, source); | - | ||||||||||||
| 111 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 112 | } never executed:  end of block | 0 | ||||||||||||
| 113 | - | |||||||||||||
| 114 | void QWindowSystemInterface::handleFrameStrutMouseEvent(QWindow *w, const QPointF & local, const QPointF & global, Qt::MouseButtons b, | - | ||||||||||||
| 115 | Qt::KeyboardModifiers mods, Qt::MouseEventSource source) | - | ||||||||||||
| 116 | { | - | ||||||||||||
| 117 | const unsigned long time = QWindowSystemInterfacePrivate::eventTime.elapsed(); | - | ||||||||||||
| 118 | handleFrameStrutMouseEvent(w, time, local, global, b, mods, source); | - | ||||||||||||
| 119 | } never executed:  end of block | 0 | ||||||||||||
| 120 | - | |||||||||||||
| 121 | void QWindowSystemInterface::handleFrameStrutMouseEvent(QWindow *w, ulong timestamp, const QPointF & local, const QPointF & global, Qt::MouseButtons b, | - | ||||||||||||
| 122 | Qt::KeyboardModifiers mods, Qt::MouseEventSource source) | - | ||||||||||||
| 123 | { | - | ||||||||||||
| 124 | QWindowSystemInterfacePrivate::MouseEvent * e = | - | ||||||||||||
| 125 | new QWindowSystemInterfacePrivate::MouseEvent(w, timestamp, | - | ||||||||||||
| 126 | QWindowSystemInterfacePrivate::FrameStrutMouse, | - | ||||||||||||
| 127 | QHighDpi::fromNativeLocalPosition(local, w), QHighDpi::fromNativePixels(global, w), b, mods, source); | - | ||||||||||||
| 128 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 129 | } never executed:  end of block | 0 | ||||||||||||
| 130 | - | |||||||||||||
| 131 | bool QWindowSystemInterface::handleShortcutEvent(QWindow *window, ulong timestamp, int keyCode, Qt::KeyboardModifiers modifiers, quint32 nativeScanCode, | - | ||||||||||||
| 132 | quint32 nativeVirtualKey, quint32 nativeModifiers, const QString &text, bool autorepeat, ushort count) | - | ||||||||||||
| 133 | { | - | ||||||||||||
| 134 | - | |||||||||||||
| 135 |     if (!window
  | 0 | ||||||||||||
| 136 |         window = QGuiApplication::focusWindow(); never executed:  window = QGuiApplication::focusWindow(); | 0 | ||||||||||||
| 137 | - | |||||||||||||
| 138 | QShortcutMap &shortcutMap = QGuiApplicationPrivate::instance()->shortcutMap; | - | ||||||||||||
| 139 |     if (shortcutMap.state() == QKeySequence::NoMatch
  | 0 | ||||||||||||
| 140 | - | |||||||||||||
| 141 | - | |||||||||||||
| 142 | - | |||||||||||||
| 143 | - | |||||||||||||
| 144 | - | |||||||||||||
| 145 | QWindowSystemInterfacePrivate::KeyEvent *shortcutOverrideEvent = new QWindowSystemInterfacePrivate::KeyEvent(window, timestamp, | - | ||||||||||||
| 146 | QEvent::ShortcutOverride, keyCode, modifiers, nativeScanCode, nativeVirtualKey, nativeModifiers, text, autorepeat, count); | - | ||||||||||||
| 147 | - | |||||||||||||
| 148 | { | - | ||||||||||||
| 149 | - | |||||||||||||
| 150 | QScopedValueRollback<bool> syncRollback(QWindowSystemInterfacePrivate::synchronousWindowSystemEvents); | - | ||||||||||||
| 151 | QWindowSystemInterfacePrivate::synchronousWindowSystemEvents = true; | - | ||||||||||||
| 152 | - | |||||||||||||
| 153 |             if (QWindowSystemInterfacePrivate::handleWindowSystemEvent(shortcutOverrideEvent)
  | 0 | ||||||||||||
| 154 |                 return never executed:   false;return false;never executed:  return false; | 0 | ||||||||||||
| 155 | } | - | ||||||||||||
| 156 |     } never executed:  end of block | 0 | ||||||||||||
| 157 | - | |||||||||||||
| 158 | - | |||||||||||||
| 159 | - | |||||||||||||
| 160 | - | |||||||||||||
| 161 | QKeyEvent keyEvent(QEvent::ShortcutOverride, keyCode, modifiers, nativeScanCode, | - | ||||||||||||
| 162 | nativeVirtualKey, nativeModifiers, text, autorepeat, count); | - | ||||||||||||
| 163 | - | |||||||||||||
| 164 |     return never executed:   shortcutMap.tryShortcut(&keyEvent);return shortcutMap.tryShortcut(&keyEvent);never executed:  return shortcutMap.tryShortcut(&keyEvent); | 0 | ||||||||||||
| 165 | } | - | ||||||||||||
| 166 | - | |||||||||||||
| 167 | - | |||||||||||||
| 168 | bool QWindowSystemInterface::handleKeyEvent(QWindow *w, QEvent::Type t, int k, Qt::KeyboardModifiers mods, const QString & text, bool autorep, ushort count) { | - | ||||||||||||
| 169 | unsigned long time = QWindowSystemInterfacePrivate::eventTime.elapsed(); | - | ||||||||||||
| 170 |     return never executed:   handleKeyEvent(w, time, t, k, mods, text, autorep, count);return handleKeyEvent(w, time, t, k, mods, text, autorep, count);never executed:  return handleKeyEvent(w, time, t, k, mods, text, autorep, count); | 0 | ||||||||||||
| 171 | } | - | ||||||||||||
| 172 | - | |||||||||||||
| 173 | bool QWindowSystemInterface::handleKeyEvent(QWindow *tlw, ulong timestamp, QEvent::Type t, int k, Qt::KeyboardModifiers mods, const QString & text, bool autorep, ushort count) | - | ||||||||||||
| 174 | { | - | ||||||||||||
| 175 | - | |||||||||||||
| 176 | - | |||||||||||||
| 177 | - | |||||||||||||
| 178 | - | |||||||||||||
| 179 | - | |||||||||||||
| 180 | QWindowSystemInterfacePrivate::KeyEvent * e = | - | ||||||||||||
| 181 | new QWindowSystemInterfacePrivate::KeyEvent(tlw, timestamp, t, k, mods, text, autorep, count); | - | ||||||||||||
| 182 |     return never executed:   QWindowSystemInterfacePrivate::handleWindowSystemEvent(e);return QWindowSystemInterfacePrivate::handleWindowSystemEvent(e);never executed:  return QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | 0 | ||||||||||||
| 183 | } | - | ||||||||||||
| 184 | - | |||||||||||||
| 185 | bool QWindowSystemInterface::handleExtendedKeyEvent(QWindow *w, QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, | - | ||||||||||||
| 186 | quint32 nativeScanCode, quint32 nativeVirtualKey, | - | ||||||||||||
| 187 | quint32 nativeModifiers, | - | ||||||||||||
| 188 | const QString& text, bool autorep, | - | ||||||||||||
| 189 | ushort count, bool tryShortcutOverride) | - | ||||||||||||
| 190 | { | - | ||||||||||||
| 191 | unsigned long time = QWindowSystemInterfacePrivate::eventTime.elapsed(); | - | ||||||||||||
| 192 |     return never executed:   handleExtendedKeyEvent(w, time, type, key, modifiers, nativeScanCode, nativeVirtualKey, nativeModifiers,return handleExtendedKeyEvent(w, time, type, key, modifiers, nativeScanCode, nativeVirtualKey, nativeModifiers, text, autorep, count, tryShortcutOverride);never executed:  return handleExtendedKeyEvent(w, time, type, key, modifiers, nativeScanCode, nativeVirtualKey, nativeModifiers, text, autorep, count, tryShortcutOverride); | 0 | ||||||||||||
| 193 |                            text, autorep, count, tryShortcutOverride); never executed:  return handleExtendedKeyEvent(w, time, type, key, modifiers, nativeScanCode, nativeVirtualKey, nativeModifiers, text, autorep, count, tryShortcutOverride); | 0 | ||||||||||||
| 194 | } | - | ||||||||||||
| 195 | - | |||||||||||||
| 196 | bool QWindowSystemInterface::handleExtendedKeyEvent(QWindow *tlw, ulong timestamp, QEvent::Type type, int key, | - | ||||||||||||
| 197 | Qt::KeyboardModifiers modifiers, | - | ||||||||||||
| 198 | quint32 nativeScanCode, quint32 nativeVirtualKey, | - | ||||||||||||
| 199 | quint32 nativeModifiers, | - | ||||||||||||
| 200 | const QString& text, bool autorep, | - | ||||||||||||
| 201 | ushort count, bool tryShortcutOverride) | - | ||||||||||||
| 202 | { | - | ||||||||||||
| 203 | - | |||||||||||||
| 204 | - | |||||||||||||
| 205 | - | |||||||||||||
| 206 | - | |||||||||||||
| 207 | - | |||||||||||||
| 208 | - | |||||||||||||
| 209 | (void)tryShortcutOverride; | - | ||||||||||||
| 210 | - | |||||||||||||
| 211 | - | |||||||||||||
| 212 | QWindowSystemInterfacePrivate::KeyEvent * e = | - | ||||||||||||
| 213 | new QWindowSystemInterfacePrivate::KeyEvent(tlw, timestamp, type, key, modifiers, | - | ||||||||||||
| 214 | nativeScanCode, nativeVirtualKey, nativeModifiers, text, autorep, count); | - | ||||||||||||
| 215 |     return never executed:   QWindowSystemInterfacePrivate::handleWindowSystemEvent(e);return QWindowSystemInterfacePrivate::handleWindowSystemEvent(e);never executed:  return QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | 0 | ||||||||||||
| 216 | } | - | ||||||||||||
| 217 | - | |||||||||||||
| 218 | void QWindowSystemInterface::handleWheelEvent(QWindow *w, const QPointF & local, const QPointF & global, int d, Qt::Orientation o, Qt::KeyboardModifiers mods) { | - | ||||||||||||
| 219 | unsigned long time = QWindowSystemInterfacePrivate::eventTime.elapsed(); | - | ||||||||||||
| 220 | handleWheelEvent(w, time, local, global, d, o, mods); | - | ||||||||||||
| 221 | } never executed:  end of block | 0 | ||||||||||||
| 222 | - | |||||||||||||
| 223 | void QWindowSystemInterface::handleWheelEvent(QWindow *tlw, ulong timestamp, const QPointF & local, const QPointF & global, int d, Qt::Orientation o, Qt::KeyboardModifiers mods) | - | ||||||||||||
| 224 | { | - | ||||||||||||
| 225 |     QPoint point = (
 
  | 0 | ||||||||||||
| 226 | handleWheelEvent(tlw, timestamp, local, global, QPoint(), point, mods); | - | ||||||||||||
| 227 | } never executed:  end of block | 0 | ||||||||||||
| 228 | - | |||||||||||||
| 229 | void QWindowSystemInterface::handleWheelEvent(QWindow *w, const QPointF & local, const QPointF & global, QPoint pixelDelta, QPoint angleDelta, Qt::KeyboardModifiers mods, Qt::ScrollPhase phase, Qt::MouseEventSource source) | - | ||||||||||||
| 230 | { | - | ||||||||||||
| 231 | unsigned long time = QWindowSystemInterfacePrivate::eventTime.elapsed(); | - | ||||||||||||
| 232 | handleWheelEvent(w, time, local, global, pixelDelta, angleDelta, mods, phase, source); | - | ||||||||||||
| 233 | } never executed:  end of block | 0 | ||||||||||||
| 234 | - | |||||||||||||
| 235 | void QWindowSystemInterface::handleWheelEvent(QWindow *tlw, ulong timestamp, const QPointF & local, const QPointF & global, QPoint pixelDelta, QPoint angleDelta, Qt::KeyboardModifiers mods, Qt::ScrollPhase phase, Qt::MouseEventSource source) | - | ||||||||||||
| 236 | { | - | ||||||||||||
| 237 |     if (!QGuiApplicationPrivate::scrollNoPhaseAllowed
 
  | 0 | ||||||||||||
| 238 |         phase = Qt::ScrollUpdate; never executed:  phase = Qt::ScrollUpdate; | 0 | ||||||||||||
| 239 | QWindowSystemInterfacePrivate::WheelEvent *e; | - | ||||||||||||
| 240 | - | |||||||||||||
| 241 | - | |||||||||||||
| 242 | - | |||||||||||||
| 243 |     if (angleDelta.isNull()
 
  | 0 | ||||||||||||
| 244 |         return; never executed:  return; | 0 | ||||||||||||
| 245 | - | |||||||||||||
| 246 | - | |||||||||||||
| 247 |     if (angleDelta.y() != 0
 
  | 0 | ||||||||||||
| 248 | e = new QWindowSystemInterfacePrivate::WheelEvent(tlw, timestamp, QHighDpi::fromNativeLocalPosition(local, tlw), QHighDpi::fromNativePixels(global, tlw), pixelDelta, angleDelta, angleDelta.y(), Qt::Vertical, mods, phase, source); | - | ||||||||||||
| 249 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 250 |         return; never executed:  return; | 0 | ||||||||||||
| 251 | } | - | ||||||||||||
| 252 | - | |||||||||||||
| 253 | - | |||||||||||||
| 254 |     if (angleDelta.y() == 0
 
  | 0 | ||||||||||||
| 255 | e = new QWindowSystemInterfacePrivate::WheelEvent(tlw, timestamp, QHighDpi::fromNativeLocalPosition(local, tlw), QHighDpi::fromNativePixels(global, tlw), pixelDelta, angleDelta, angleDelta.x(), Qt::Horizontal, mods, phase, source); | - | ||||||||||||
| 256 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 257 |         return; never executed:  return; | 0 | ||||||||||||
| 258 | } | - | ||||||||||||
| 259 | - | |||||||||||||
| 260 | - | |||||||||||||
| 261 | - | |||||||||||||
| 262 | - | |||||||||||||
| 263 | e = new QWindowSystemInterfacePrivate::WheelEvent(tlw, timestamp, QHighDpi::fromNativeLocalPosition(local, tlw), QHighDpi::fromNativePixels(global, tlw), pixelDelta, angleDelta, angleDelta.y(), Qt::Vertical, mods, phase, source); | - | ||||||||||||
| 264 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 265 | - | |||||||||||||
| 266 | - | |||||||||||||
| 267 | - | |||||||||||||
| 268 | e = new QWindowSystemInterfacePrivate::WheelEvent(tlw, timestamp, QHighDpi::fromNativeLocalPosition(local, tlw), QHighDpi::fromNativePixels(global, tlw), QPoint(), QPoint(), angleDelta.x(), Qt::Horizontal, mods, phase, source); | - | ||||||||||||
| 269 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 270 | } never executed:  end of block | 0 | ||||||||||||
| 271 | - | |||||||||||||
| 272 | - | |||||||||||||
| 273 | QWindowSystemInterfacePrivate::ExposeEvent::ExposeEvent(QWindow *exposed, const QRegion ®ion) | - | ||||||||||||
| 274 | : WindowSystemEvent(Expose) | - | ||||||||||||
| 275 | , exposed(exposed) | - | ||||||||||||
| 276 | , isExposed(exposed && exposed->handle() ? exposed->handle()->isExposed() : false) | - | ||||||||||||
| 277 | , region(region) | - | ||||||||||||
| 278 | { | - | ||||||||||||
| 279 | } never executed:  end of block | 0 | ||||||||||||
| 280 | - | |||||||||||||
| 281 | int QWindowSystemInterfacePrivate::windowSystemEventsQueued() | - | ||||||||||||
| 282 | { | - | ||||||||||||
| 283 |     return never executed:   windowSystemEventQueue.count();return windowSystemEventQueue.count();never executed:  return windowSystemEventQueue.count(); | 0 | ||||||||||||
| 284 | } | - | ||||||||||||
| 285 | - | |||||||||||||
| 286 | QWindowSystemInterfacePrivate::WindowSystemEvent * QWindowSystemInterfacePrivate::getWindowSystemEvent() | - | ||||||||||||
| 287 | { | - | ||||||||||||
| 288 |     return never executed:   windowSystemEventQueue.takeFirstOrReturnNull();return windowSystemEventQueue.takeFirstOrReturnNull();never executed:  return windowSystemEventQueue.takeFirstOrReturnNull(); | 0 | ||||||||||||
| 289 | } | - | ||||||||||||
| 290 | - | |||||||||||||
| 291 | QWindowSystemInterfacePrivate::WindowSystemEvent *QWindowSystemInterfacePrivate::getNonUserInputWindowSystemEvent() | - | ||||||||||||
| 292 | { | - | ||||||||||||
| 293 |     return never executed:   windowSystemEventQueue.takeFirstNonUserInputOrReturnNull();return windowSystemEventQueue.takeFirstNonUserInputOrReturnNull();never executed:  return windowSystemEventQueue.takeFirstNonUserInputOrReturnNull(); | 0 | ||||||||||||
| 294 | } | - | ||||||||||||
| 295 | - | |||||||||||||
| 296 | QWindowSystemInterfacePrivate::WindowSystemEvent *QWindowSystemInterfacePrivate::peekWindowSystemEvent(EventType t) | - | ||||||||||||
| 297 | { | - | ||||||||||||
| 298 |     return never executed:   windowSystemEventQueue.peekAtFirstOfType(t);return windowSystemEventQueue.peekAtFirstOfType(t);never executed:  return windowSystemEventQueue.peekAtFirstOfType(t); | 0 | ||||||||||||
| 299 | } | - | ||||||||||||
| 300 | - | |||||||||||||
| 301 | void QWindowSystemInterfacePrivate::removeWindowSystemEvent(WindowSystemEvent *event) | - | ||||||||||||
| 302 | { | - | ||||||||||||
| 303 | windowSystemEventQueue.remove(event); | - | ||||||||||||
| 304 | } never executed:  end of block | 0 | ||||||||||||
| 305 | - | |||||||||||||
| 306 | void QWindowSystemInterfacePrivate::postWindowSystemEvent(WindowSystemEvent *ev) | - | ||||||||||||
| 307 | { | - | ||||||||||||
| 308 | windowSystemEventQueue.append(ev); | - | ||||||||||||
| 309 | QAbstractEventDispatcher *dispatcher = QGuiApplicationPrivate::qt_qpa_core_dispatcher(); | - | ||||||||||||
| 310 |     if (dispatcher
  | 0 | ||||||||||||
| 311 |         dispatcher->wakeUp(); never executed:  dispatcher->wakeUp(); | 0 | ||||||||||||
| 312 | } never executed:  end of block | 0 | ||||||||||||
| 313 | bool QWindowSystemInterfacePrivate::handleWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent *ev) | - | ||||||||||||
| 314 | { | - | ||||||||||||
| 315 | bool accepted = true; | - | ||||||||||||
| 316 |     if (synchronousWindowSystemEvents
  | 0 | ||||||||||||
| 317 |         if (QThread::currentThread() == QGuiApplication::instance()->thread()
  | 0 | ||||||||||||
| 318 | - | |||||||||||||
| 319 | QGuiApplicationPrivate::processWindowSystemEvent(ev); | - | ||||||||||||
| 320 | accepted = ev->eventAccepted; | - | ||||||||||||
| 321 | delete ev; | - | ||||||||||||
| 322 |         } never executed:   else {end of block | 0 | ||||||||||||
| 323 | - | |||||||||||||
| 324 | - | |||||||||||||
| 325 | - | |||||||||||||
| 326 | - | |||||||||||||
| 327 | postWindowSystemEvent(ev); | - | ||||||||||||
| 328 | accepted = QWindowSystemInterface::flushWindowSystemEvents(); | - | ||||||||||||
| 329 |         } never executed:  end of block | 0 | ||||||||||||
| 330 | } else { | - | ||||||||||||
| 331 | postWindowSystemEvent(ev); | - | ||||||||||||
| 332 |     } never executed:  end of block | 0 | ||||||||||||
| 333 |     return never executed:   accepted;return accepted;never executed:  return accepted; | 0 | ||||||||||||
| 334 | } | - | ||||||||||||
| 335 | - | |||||||||||||
| 336 | void QWindowSystemInterface::registerTouchDevice(const QTouchDevice *device) | - | ||||||||||||
| 337 | { | - | ||||||||||||
| 338 | QTouchDevicePrivate::registerDevice(device); | - | ||||||||||||
| 339 | } never executed:  end of block | 0 | ||||||||||||
| 340 | - | |||||||||||||
| 341 | void QWindowSystemInterface::unregisterTouchDevice(const QTouchDevice *device) | - | ||||||||||||
| 342 | { | - | ||||||||||||
| 343 | QTouchDevicePrivate::unregisterDevice(device); | - | ||||||||||||
| 344 | } never executed:  end of block | 0 | ||||||||||||
| 345 | - | |||||||||||||
| 346 | bool QWindowSystemInterface::isTouchDeviceRegistered(const QTouchDevice *device) | - | ||||||||||||
| 347 | { | - | ||||||||||||
| 348 |     return never executed:   QTouchDevicePrivate::isRegistered(device);return QTouchDevicePrivate::isRegistered(device);never executed:  return QTouchDevicePrivate::isRegistered(device); | 0 | ||||||||||||
| 349 | } | - | ||||||||||||
| 350 | - | |||||||||||||
| 351 | void QWindowSystemInterface::handleTouchEvent(QWindow *w, QTouchDevice *device, | - | ||||||||||||
| 352 | const QList<TouchPoint> &points, Qt::KeyboardModifiers mods) | - | ||||||||||||
| 353 | { | - | ||||||||||||
| 354 | unsigned long time = QWindowSystemInterfacePrivate::eventTime.elapsed(); | - | ||||||||||||
| 355 | handleTouchEvent(w, time, device, points, mods); | - | ||||||||||||
| 356 | } never executed:  end of block | 0 | ||||||||||||
| 357 | - | |||||||||||||
| 358 | QList<QTouchEvent::TouchPoint> | - | ||||||||||||
| 359 | QWindowSystemInterfacePrivate::fromNativeTouchPoints(const QList<QWindowSystemInterface::TouchPoint> &points, | - | ||||||||||||
| 360 | const QWindow *window, | - | ||||||||||||
| 361 | QEvent::Type *type) | - | ||||||||||||
| 362 | { | - | ||||||||||||
| 363 | QList<QTouchEvent::TouchPoint> touchPoints; | - | ||||||||||||
| 364 | Qt::TouchPointStates states; | - | ||||||||||||
| 365 | QTouchEvent::TouchPoint p; | - | ||||||||||||
| 366 | - | |||||||||||||
| 367 | touchPoints.reserve(points.count()); | - | ||||||||||||
| 368 | QList<QWindowSystemInterface::TouchPoint>::const_iterator point = points.constBegin(); | - | ||||||||||||
| 369 | QList<QWindowSystemInterface::TouchPoint>::const_iterator end = points.constEnd(); | - | ||||||||||||
| 370 |     while (point != end
  | 0 | ||||||||||||
| 371 | p.setId(point->id); | - | ||||||||||||
| 372 | p.setPressure(point->pressure); | - | ||||||||||||
| 373 | states |= point->state; | - | ||||||||||||
| 374 | p.setState(point->state); | - | ||||||||||||
| 375 | - | |||||||||||||
| 376 | const QPointF screenPos = point->area.center(); | - | ||||||||||||
| 377 | p.setScreenPos(QHighDpi::fromNativePixels(screenPos, window)); | - | ||||||||||||
| 378 | p.setScreenRect(QHighDpi::fromNativePixels(point->area, window)); | - | ||||||||||||
| 379 | - | |||||||||||||
| 380 | - | |||||||||||||
| 381 | - | |||||||||||||
| 382 | - | |||||||||||||
| 383 | p.setNormalizedPos(QHighDpi::fromNativePixels(point->normalPosition, window)); | - | ||||||||||||
| 384 | p.setVelocity(QHighDpi::fromNativePixels(point->velocity, window)); | - | ||||||||||||
| 385 | p.setFlags(point->flags); | - | ||||||||||||
| 386 | p.setRawScreenPositions(QHighDpi::fromNativePixels(point->rawPositions, window)); | - | ||||||||||||
| 387 | - | |||||||||||||
| 388 | touchPoints.append(p); | - | ||||||||||||
| 389 | ++point; | - | ||||||||||||
| 390 |     } never executed:  end of block | 0 | ||||||||||||
| 391 | - | |||||||||||||
| 392 | - | |||||||||||||
| 393 |     if (type
  | 0 | ||||||||||||
| 394 | *type = QEvent::TouchUpdate; | - | ||||||||||||
| 395 |         if (states == Qt::TouchPointPressed
  | 0 | ||||||||||||
| 396 |             * never executed:  type = QEvent::TouchBegin;*type = QEvent::TouchBegin;never executed:  *type = QEvent::TouchBegin; | 0 | ||||||||||||
| 397 |         else if (states == Qt::TouchPointReleased
  | 0 | ||||||||||||
| 398 |             * never executed:  type = QEvent::TouchEnd;*type = QEvent::TouchEnd;never executed:  *type = QEvent::TouchEnd; | 0 | ||||||||||||
| 399 |     } never executed:  end of block | 0 | ||||||||||||
| 400 | - | |||||||||||||
| 401 |     return never executed:   touchPoints;return touchPoints;never executed:  return touchPoints; | 0 | ||||||||||||
| 402 | } | - | ||||||||||||
| 403 | - | |||||||||||||
| 404 | QList<QWindowSystemInterface::TouchPoint> | - | ||||||||||||
| 405 | QWindowSystemInterfacePrivate::toNativeTouchPoints(const QList<QTouchEvent::TouchPoint>& pointList, | - | ||||||||||||
| 406 | const QWindow *window) | - | ||||||||||||
| 407 | { | - | ||||||||||||
| 408 | QList<QWindowSystemInterface::TouchPoint> newList; | - | ||||||||||||
| 409 | newList.reserve(pointList.size()); | - | ||||||||||||
| 410 | for (QForeachContainer<typename QtPrivate::remove_reference<decltype(pointList)>::type> _container_((pointList)); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (const QTouchEvent::TouchPoint &pt = *_container_.i; _container_.control; _container_.control = 0) { | - | ||||||||||||
| 411 | QWindowSystemInterface::TouchPoint p; | - | ||||||||||||
| 412 | p.id = pt.id(); | - | ||||||||||||
| 413 | p.flags = pt.flags(); | - | ||||||||||||
| 414 | p.normalPosition = QHighDpi::toNativeLocalPosition(pt.normalizedPos(), window); | - | ||||||||||||
| 415 | p.area = QHighDpi::toNativePixels(pt.screenRect(), window); | - | ||||||||||||
| 416 | p.pressure = pt.pressure(); | - | ||||||||||||
| 417 | p.state = pt.state(); | - | ||||||||||||
| 418 | p.velocity = pt.velocity(); | - | ||||||||||||
| 419 | p.rawPositions = pt.rawScreenPositions(); | - | ||||||||||||
| 420 | newList.append(p); | - | ||||||||||||
| 421 |     } never executed:  end of block | 0 | ||||||||||||
| 422 |     return never executed:   newList;return newList;never executed:  return newList; | 0 | ||||||||||||
| 423 | } | - | ||||||||||||
| 424 | - | |||||||||||||
| 425 | void QWindowSystemInterface::handleTouchEvent(QWindow *tlw, ulong timestamp, QTouchDevice *device, | - | ||||||||||||
| 426 | const QList<TouchPoint> &points, Qt::KeyboardModifiers mods) | - | ||||||||||||
| 427 | { | - | ||||||||||||
| 428 |     if (!points.size()
  | 0 | ||||||||||||
| 429 |         return; never executed:  return; | 0 | ||||||||||||
| 430 | - | |||||||||||||
| 431 |     if (!QTouchDevicePrivate::isRegistered(device)
  | 0 | ||||||||||||
| 432 |         return; never executed:  return; | 0 | ||||||||||||
| 433 | - | |||||||||||||
| 434 | QEvent::Type type; | - | ||||||||||||
| 435 | QList<QTouchEvent::TouchPoint> touchPoints = QWindowSystemInterfacePrivate::fromNativeTouchPoints(points, tlw, &type); | - | ||||||||||||
| 436 | - | |||||||||||||
| 437 | QWindowSystemInterfacePrivate::TouchEvent *e = | - | ||||||||||||
| 438 | new QWindowSystemInterfacePrivate::TouchEvent(tlw, timestamp, type, device, touchPoints, mods); | - | ||||||||||||
| 439 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 440 | } never executed:  end of block | 0 | ||||||||||||
| 441 | - | |||||||||||||
| 442 | void QWindowSystemInterface::handleTouchCancelEvent(QWindow *w, QTouchDevice *device, | - | ||||||||||||
| 443 | Qt::KeyboardModifiers mods) | - | ||||||||||||
| 444 | { | - | ||||||||||||
| 445 | unsigned long time = QWindowSystemInterfacePrivate::eventTime.elapsed(); | - | ||||||||||||
| 446 | handleTouchCancelEvent(w, time, device, mods); | - | ||||||||||||
| 447 | } never executed:  end of block | 0 | ||||||||||||
| 448 | - | |||||||||||||
| 449 | void QWindowSystemInterface::handleTouchCancelEvent(QWindow *w, ulong timestamp, QTouchDevice *device, | - | ||||||||||||
| 450 | Qt::KeyboardModifiers mods) | - | ||||||||||||
| 451 | { | - | ||||||||||||
| 452 | QWindowSystemInterfacePrivate::TouchEvent *e = | - | ||||||||||||
| 453 | new QWindowSystemInterfacePrivate::TouchEvent(w, timestamp, QEvent::TouchCancel, device, | - | ||||||||||||
| 454 | QList<QTouchEvent::TouchPoint>(), mods); | - | ||||||||||||
| 455 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 456 | } never executed:  end of block | 0 | ||||||||||||
| 457 | - | |||||||||||||
| 458 | void QWindowSystemInterface::handleScreenOrientationChange(QScreen *screen, Qt::ScreenOrientation orientation) | - | ||||||||||||
| 459 | { | - | ||||||||||||
| 460 | QWindowSystemInterfacePrivate::ScreenOrientationEvent *e = | - | ||||||||||||
| 461 | new QWindowSystemInterfacePrivate::ScreenOrientationEvent(screen, orientation); | - | ||||||||||||
| 462 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 463 | } never executed:  end of block | 0 | ||||||||||||
| 464 | - | |||||||||||||
| 465 | void QWindowSystemInterface::handleScreenGeometryChange(QScreen *screen, const QRect &geometry, const QRect &availableGeometry) | - | ||||||||||||
| 466 | { | - | ||||||||||||
| 467 | QWindowSystemInterfacePrivate::ScreenGeometryEvent *e = | - | ||||||||||||
| 468 | new QWindowSystemInterfacePrivate::ScreenGeometryEvent(screen, QHighDpi::fromNativeScreenGeometry(geometry, screen), QHighDpi::fromNative(availableGeometry, screen, geometry.topLeft())); | - | ||||||||||||
| 469 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 470 | } never executed:  end of block | 0 | ||||||||||||
| 471 | - | |||||||||||||
| 472 | void QWindowSystemInterface::handleScreenLogicalDotsPerInchChange(QScreen *screen, qreal dpiX, qreal dpiY) | - | ||||||||||||
| 473 | { | - | ||||||||||||
| 474 | QWindowSystemInterfacePrivate::ScreenLogicalDotsPerInchEvent *e = | - | ||||||||||||
| 475 | new QWindowSystemInterfacePrivate::ScreenLogicalDotsPerInchEvent(screen, dpiX, dpiY); | - | ||||||||||||
| 476 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 477 | } never executed:  end of block | 0 | ||||||||||||
| 478 | - | |||||||||||||
| 479 | void QWindowSystemInterface::handleScreenRefreshRateChange(QScreen *screen, qreal newRefreshRate) | - | ||||||||||||
| 480 | { | - | ||||||||||||
| 481 | QWindowSystemInterfacePrivate::ScreenRefreshRateEvent *e = | - | ||||||||||||
| 482 | new QWindowSystemInterfacePrivate::ScreenRefreshRateEvent(screen, newRefreshRate); | - | ||||||||||||
| 483 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 484 | } never executed:  end of block | 0 | ||||||||||||
| 485 | - | |||||||||||||
| 486 | void QWindowSystemInterface::handleThemeChange(QWindow *tlw) | - | ||||||||||||
| 487 | { | - | ||||||||||||
| 488 | QWindowSystemInterfacePrivate::ThemeChangeEvent *e = new QWindowSystemInterfacePrivate::ThemeChangeEvent(tlw); | - | ||||||||||||
| 489 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 490 | } never executed:  end of block | 0 | ||||||||||||
| 491 | - | |||||||||||||
| 492 | void QWindowSystemInterface::handleExposeEvent(QWindow *tlw, const QRegion ®ion) | - | ||||||||||||
| 493 | { | - | ||||||||||||
| 494 | QWindowSystemInterfacePrivate::ExposeEvent *e = | - | ||||||||||||
| 495 | new QWindowSystemInterfacePrivate::ExposeEvent(tlw, QHighDpi::fromNativeLocalExposedRegion(region, tlw)); | - | ||||||||||||
| 496 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 497 | } never executed:  end of block | 0 | ||||||||||||
| 498 | - | |||||||||||||
| 499 | void QWindowSystemInterface::deferredFlushWindowSystemEvents(QEventLoop::ProcessEventsFlags flags) | - | ||||||||||||
| 500 | { | - | ||||||||||||
| 501 | ((!(QThread::currentThread() == QGuiApplication::instance()->thread())) ? qt_assert("QThread::currentThread() == QGuiApplication::instance()->thread()",__FILE__,601) : qt_noop()); | - | ||||||||||||
| 502 | - | |||||||||||||
| 503 | QMutexLocker locker(&QWindowSystemInterfacePrivate::flushEventMutex); | - | ||||||||||||
| 504 | sendWindowSystemEvents(flags); | - | ||||||||||||
| 505 | QWindowSystemInterfacePrivate::eventsFlushed.wakeOne(); | - | ||||||||||||
| 506 | } never executed:  end of block | 0 | ||||||||||||
| 507 | - | |||||||||||||
| 508 | - | |||||||||||||
| 509 | - | |||||||||||||
| 510 | - | |||||||||||||
| 511 | - | |||||||||||||
| 512 | bool QWindowSystemInterface::flushWindowSystemEvents(QEventLoop::ProcessEventsFlags flags) | - | ||||||||||||
| 513 | { | - | ||||||||||||
| 514 | const int count = QWindowSystemInterfacePrivate::windowSystemEventQueue.count(); | - | ||||||||||||
| 515 |     if (!count
  | 0 | ||||||||||||
| 516 |         return never executed:   false;return false;never executed:  return false; | 0 | ||||||||||||
| 517 |     if (!QGuiApplication::instance()
  | 0 | ||||||||||||
| 518 | QMessageLogger(__FILE__, 618, __PRETTY_FUNCTION__).warning().nospace() | - | ||||||||||||
| 519 | << "QWindowSystemInterface::flushWindowSystemEvents() invoked after " | - | ||||||||||||
| 520 | "QGuiApplication destruction, discarding " << count << " events."; | - | ||||||||||||
| 521 | QWindowSystemInterfacePrivate::windowSystemEventQueue.clear(); | - | ||||||||||||
| 522 |         return never executed:   false;return false;never executed:  return false; | 0 | ||||||||||||
| 523 | } | - | ||||||||||||
| 524 |     if (QThread::currentThread() != QGuiApplication::instance()->thread()
  | 0 | ||||||||||||
| 525 | - | |||||||||||||
| 526 | - | |||||||||||||
| 527 | QMutexLocker locker(&QWindowSystemInterfacePrivate::flushEventMutex); | - | ||||||||||||
| 528 | QWindowSystemInterfacePrivate::FlushEventsEvent *e = new QWindowSystemInterfacePrivate::FlushEventsEvent(flags); | - | ||||||||||||
| 529 | QWindowSystemInterfacePrivate::postWindowSystemEvent(e); | - | ||||||||||||
| 530 | QWindowSystemInterfacePrivate::eventsFlushed.wait(&QWindowSystemInterfacePrivate::flushEventMutex); | - | ||||||||||||
| 531 |     } never executed:   else {end of block | 0 | ||||||||||||
| 532 | sendWindowSystemEvents(flags); | - | ||||||||||||
| 533 |     } never executed:  end of block | 0 | ||||||||||||
| 534 |     return never executed:   QWindowSystemInterfacePrivate::eventAccepted.load() > 0;return QWindowSystemInterfacePrivate::eventAccepted.load() > 0;never executed:  return QWindowSystemInterfacePrivate::eventAccepted.load() > 0; | 0 | ||||||||||||
| 535 | } | - | ||||||||||||
| 536 | - | |||||||||||||
| 537 | bool QWindowSystemInterface::sendWindowSystemEvents(QEventLoop::ProcessEventsFlags flags) | - | ||||||||||||
| 538 | { | - | ||||||||||||
| 539 | int nevents = 0; | - | ||||||||||||
| 540 | - | |||||||||||||
| 541 |     while (QWindowSystemInterfacePrivate::windowSystemEventsQueued()
  | 0 | ||||||||||||
| 542 | QWindowSystemInterfacePrivate::WindowSystemEvent *event = | - | ||||||||||||
| 543 |             (
 
  | 0 | ||||||||||||
| 544 | QWindowSystemInterfacePrivate::getNonUserInputWindowSystemEvent() : | - | ||||||||||||
| 545 | QWindowSystemInterfacePrivate::getWindowSystemEvent(); | - | ||||||||||||
| 546 |         if (!event
  | 0 | ||||||||||||
| 547 |             break; never executed:  break; | 0 | ||||||||||||
| 548 | - | |||||||||||||
| 549 |         if (QWindowSystemInterfacePrivate::eventHandler
  | 0 | ||||||||||||
| 550 |             if (QWindowSystemInterfacePrivate::eventHandler->sendEvent(event)
  | 0 | ||||||||||||
| 551 |                 nevents++; never executed:  nevents++; | 0 | ||||||||||||
| 552 |         } never executed:   else {end of block | 0 | ||||||||||||
| 553 | nevents++; | - | ||||||||||||
| 554 | QGuiApplicationPrivate::processWindowSystemEvent(event); | - | ||||||||||||
| 555 |         } never executed:  end of block | 0 | ||||||||||||
| 556 | - | |||||||||||||
| 557 | - | |||||||||||||
| 558 | - | |||||||||||||
| 559 | - | |||||||||||||
| 560 |         if (event->type != QWindowSystemInterfacePrivate::FlushEvents
  | 0 | ||||||||||||
| 561 |             QWindowSystemInterfacePrivate::eventAccepted.store(event->eventAccepted); never executed:  QWindowSystemInterfacePrivate::eventAccepted.store(event->eventAccepted); | 0 | ||||||||||||
| 562 | - | |||||||||||||
| 563 | delete event; | - | ||||||||||||
| 564 |     } never executed:  end of block | 0 | ||||||||||||
| 565 | - | |||||||||||||
| 566 |     return never executed:   (nevents > 0);return (nevents > 0);never executed:  return (nevents > 0); | 0 | ||||||||||||
| 567 | } | - | ||||||||||||
| 568 | - | |||||||||||||
| 569 | void QWindowSystemInterfacePrivate::installWindowSystemEventHandler(QWindowSystemEventHandler *handler) | - | ||||||||||||
| 570 | { | - | ||||||||||||
| 571 |     if (!eventHandler
  | 0 | ||||||||||||
| 572 |         eventHandler = handler; never executed:  eventHandler = handler; | 0 | ||||||||||||
| 573 | } never executed:  end of block | 0 | ||||||||||||
| 574 | - | |||||||||||||
| 575 | void QWindowSystemInterfacePrivate::removeWindowSystemEventhandler(QWindowSystemEventHandler *handler) | - | ||||||||||||
| 576 | { | - | ||||||||||||
| 577 |     if (eventHandler == handler
  | 0 | ||||||||||||
| 578 |         eventHandler = 0; never executed:  eventHandler = 0; | 0 | ||||||||||||
| 579 | } never executed:  end of block | 0 | ||||||||||||
| 580 | - | |||||||||||||
| 581 | void QWindowSystemInterface::setSynchronousWindowSystemEvents(bool enable) | - | ||||||||||||
| 582 | { | - | ||||||||||||
| 583 | QWindowSystemInterfacePrivate::synchronousWindowSystemEvents = enable; | - | ||||||||||||
| 584 | } never executed:  end of block | 0 | ||||||||||||
| 585 | - | |||||||||||||
| 586 | int QWindowSystemInterface::windowSystemEventsQueued() | - | ||||||||||||
| 587 | { | - | ||||||||||||
| 588 |     return never executed:   QWindowSystemInterfacePrivate::windowSystemEventsQueued();return QWindowSystemInterfacePrivate::windowSystemEventsQueued();never executed:  return QWindowSystemInterfacePrivate::windowSystemEventsQueued(); | 0 | ||||||||||||
| 589 | } | - | ||||||||||||
| 590 | - | |||||||||||||
| 591 | - | |||||||||||||
| 592 | QPlatformDragQtResponse QWindowSystemInterface::handleDrag(QWindow *w, const QMimeData *dropData, const QPoint &p, Qt::DropActions supportedActions) | - | ||||||||||||
| 593 | { | - | ||||||||||||
| 594 |     return never executed:   QGuiApplicationPrivate::processDrag(w, dropData, QHighDpi::fromNativeLocalPosition(p, w) ,supportedActions);return QGuiApplicationPrivate::processDrag(w, dropData, QHighDpi::fromNativeLocalPosition(p, w) ,supportedActions);never executed:  return QGuiApplicationPrivate::processDrag(w, dropData, QHighDpi::fromNativeLocalPosition(p, w) ,supportedActions); | 0 | ||||||||||||
| 595 | } | - | ||||||||||||
| 596 | - | |||||||||||||
| 597 | QPlatformDropQtResponse QWindowSystemInterface::handleDrop(QWindow *w, const QMimeData *dropData, const QPoint &p, Qt::DropActions supportedActions) | - | ||||||||||||
| 598 | { | - | ||||||||||||
| 599 |     return never executed:   QGuiApplicationPrivate::processDrop(w, dropData, QHighDpi::fromNativeLocalPosition(p, w),supportedActions);return QGuiApplicationPrivate::processDrop(w, dropData, QHighDpi::fromNativeLocalPosition(p, w),supportedActions);never executed:  return QGuiApplicationPrivate::processDrop(w, dropData, QHighDpi::fromNativeLocalPosition(p, w),supportedActions); | 0 | ||||||||||||
| 600 | } | - | ||||||||||||
| 601 | bool QWindowSystemInterface::handleNativeEvent(QWindow *window, const QByteArray &eventType, void *message, long *result) | - | ||||||||||||
| 602 | { | - | ||||||||||||
| 603 |     return never executed:   QGuiApplicationPrivate::processNativeEvent(window, eventType, message, result);return QGuiApplicationPrivate::processNativeEvent(window, eventType, message, result);never executed:  return QGuiApplicationPrivate::processNativeEvent(window, eventType, message, result); | 0 | ||||||||||||
| 604 | } | - | ||||||||||||
| 605 | - | |||||||||||||
| 606 | void QWindowSystemInterface::handleFileOpenEvent(const QString& fileName) | - | ||||||||||||
| 607 | { | - | ||||||||||||
| 608 | QWindowSystemInterfacePrivate::FileOpenEvent e(fileName); | - | ||||||||||||
| 609 | QGuiApplicationPrivate::processWindowSystemEvent(&e); | - | ||||||||||||
| 610 | } never executed:  end of block | 0 | ||||||||||||
| 611 | - | |||||||||||||
| 612 | void QWindowSystemInterface::handleFileOpenEvent(const QUrl &url) | - | ||||||||||||
| 613 | { | - | ||||||||||||
| 614 | QWindowSystemInterfacePrivate::FileOpenEvent e(url); | - | ||||||||||||
| 615 | QGuiApplicationPrivate::processWindowSystemEvent(&e); | - | ||||||||||||
| 616 | } never executed:  end of block | 0 | ||||||||||||
| 617 | - | |||||||||||||
| 618 | void QWindowSystemInterface::handleTabletEvent(QWindow *w, ulong timestamp, const QPointF &local, const QPointF &global, | - | ||||||||||||
| 619 | int device, int pointerType, Qt::MouseButtons buttons, qreal pressure, int xTilt, int yTilt, | - | ||||||||||||
| 620 | qreal tangentialPressure, qreal rotation, int z, qint64 uid, | - | ||||||||||||
| 621 | Qt::KeyboardModifiers modifiers) | - | ||||||||||||
| 622 | { | - | ||||||||||||
| 623 | QWindowSystemInterfacePrivate::TabletEvent *e = | - | ||||||||||||
| 624 | new QWindowSystemInterfacePrivate::TabletEvent(w,timestamp, | - | ||||||||||||
| 625 | QHighDpi::fromNativeLocalPosition(local, w), | - | ||||||||||||
| 626 | QHighDpi::fromNativePixels(global, w), | - | ||||||||||||
| 627 | device, pointerType, buttons, pressure, | - | ||||||||||||
| 628 | xTilt, yTilt, tangentialPressure, rotation, z, uid, modifiers); | - | ||||||||||||
| 629 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 630 | } never executed:  end of block | 0 | ||||||||||||
| 631 | - | |||||||||||||
| 632 | void QWindowSystemInterface::handleTabletEvent(QWindow *w, const QPointF &local, const QPointF &global, | - | ||||||||||||
| 633 | int device, int pointerType, Qt::MouseButtons buttons, qreal pressure, int xTilt, int yTilt, | - | ||||||||||||
| 634 | qreal tangentialPressure, qreal rotation, int z, qint64 uid, | - | ||||||||||||
| 635 | Qt::KeyboardModifiers modifiers) | - | ||||||||||||
| 636 | { | - | ||||||||||||
| 637 | ulong time = QWindowSystemInterfacePrivate::eventTime.elapsed(); | - | ||||||||||||
| 638 | handleTabletEvent(w, time, local, global, device, pointerType, buttons, pressure, | - | ||||||||||||
| 639 | xTilt, yTilt, tangentialPressure, rotation, z, uid, modifiers); | - | ||||||||||||
| 640 | } never executed:  end of block | 0 | ||||||||||||
| 641 | - | |||||||||||||
| 642 | void QWindowSystemInterface::handleTabletEvent(QWindow *w, ulong timestamp, bool down, const QPointF &local, const QPointF &global, | - | ||||||||||||
| 643 | int device, int pointerType, qreal pressure, int xTilt, int yTilt, | - | ||||||||||||
| 644 | qreal tangentialPressure, qreal rotation, int z, qint64 uid, | - | ||||||||||||
| 645 | Qt::KeyboardModifiers modifiers) | - | ||||||||||||
| 646 | { | - | ||||||||||||
| 647 | handleTabletEvent(w, timestamp, local, global, device, pointerType, (down ? Qt::LeftButton : Qt::NoButton), pressure, | - | ||||||||||||
| 648 | xTilt, yTilt, tangentialPressure, rotation, z, uid, modifiers); | - | ||||||||||||
| 649 | } never executed:  end of block | 0 | ||||||||||||
| 650 | - | |||||||||||||
| 651 | void QWindowSystemInterface::handleTabletEvent(QWindow *w, bool down, const QPointF &local, const QPointF &global, | - | ||||||||||||
| 652 | int device, int pointerType, qreal pressure, int xTilt, int yTilt, | - | ||||||||||||
| 653 | qreal tangentialPressure, qreal rotation, int z, qint64 uid, | - | ||||||||||||
| 654 | Qt::KeyboardModifiers modifiers) | - | ||||||||||||
| 655 | { | - | ||||||||||||
| 656 | handleTabletEvent(w, local, global, device, pointerType, (down ? Qt::LeftButton : Qt::NoButton), pressure, | - | ||||||||||||
| 657 | xTilt, yTilt, tangentialPressure, rotation, z, uid, modifiers); | - | ||||||||||||
| 658 | } never executed:  end of block | 0 | ||||||||||||
| 659 | - | |||||||||||||
| 660 | void QWindowSystemInterface::handleTabletEnterProximityEvent(ulong timestamp, int device, int pointerType, qint64 uid) | - | ||||||||||||
| 661 | { | - | ||||||||||||
| 662 | QWindowSystemInterfacePrivate::TabletEnterProximityEvent *e = | - | ||||||||||||
| 663 | new QWindowSystemInterfacePrivate::TabletEnterProximityEvent(timestamp, device, pointerType, uid); | - | ||||||||||||
| 664 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 665 | } never executed:  end of block | 0 | ||||||||||||
| 666 | - | |||||||||||||
| 667 | void QWindowSystemInterface::handleTabletEnterProximityEvent(int device, int pointerType, qint64 uid) | - | ||||||||||||
| 668 | { | - | ||||||||||||
| 669 | ulong time = QWindowSystemInterfacePrivate::eventTime.elapsed(); | - | ||||||||||||
| 670 | handleTabletEnterProximityEvent(time, device, pointerType, uid); | - | ||||||||||||
| 671 | } never executed:  end of block | 0 | ||||||||||||
| 672 | - | |||||||||||||
| 673 | void QWindowSystemInterface::handleTabletLeaveProximityEvent(ulong timestamp, int device, int pointerType, qint64 uid) | - | ||||||||||||
| 674 | { | - | ||||||||||||
| 675 | QWindowSystemInterfacePrivate::TabletLeaveProximityEvent *e = | - | ||||||||||||
| 676 | new QWindowSystemInterfacePrivate::TabletLeaveProximityEvent(timestamp, device, pointerType, uid); | - | ||||||||||||
| 677 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 678 | } never executed:  end of block | 0 | ||||||||||||
| 679 | - | |||||||||||||
| 680 | void QWindowSystemInterface::handleTabletLeaveProximityEvent(int device, int pointerType, qint64 uid) | - | ||||||||||||
| 681 | { | - | ||||||||||||
| 682 | ulong time = QWindowSystemInterfacePrivate::eventTime.elapsed(); | - | ||||||||||||
| 683 | handleTabletLeaveProximityEvent(time, device, pointerType, uid); | - | ||||||||||||
| 684 | } never executed:  end of block | 0 | ||||||||||||
| 685 | - | |||||||||||||
| 686 | - | |||||||||||||
| 687 | void QWindowSystemInterface::handleGestureEvent(QWindow *window, ulong timestamp, Qt::NativeGestureType type, | - | ||||||||||||
| 688 | QPointF &local, QPointF &global) | - | ||||||||||||
| 689 | { | - | ||||||||||||
| 690 | QWindowSystemInterfacePrivate::GestureEvent *e = | - | ||||||||||||
| 691 | new QWindowSystemInterfacePrivate::GestureEvent(window, timestamp, type, local, global); | - | ||||||||||||
| 692 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 693 | } never executed:  end of block | 0 | ||||||||||||
| 694 | - | |||||||||||||
| 695 | void QWindowSystemInterface::handleGestureEventWithRealValue(QWindow *window, ulong timestamp, Qt::NativeGestureType type, | - | ||||||||||||
| 696 | qreal value, QPointF &local, QPointF &global) | - | ||||||||||||
| 697 | { | - | ||||||||||||
| 698 | QWindowSystemInterfacePrivate::GestureEvent *e = | - | ||||||||||||
| 699 | new QWindowSystemInterfacePrivate::GestureEvent(window, timestamp, type, local, global); | - | ||||||||||||
| 700 | e->realValue = value; | - | ||||||||||||
| 701 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 702 | } never executed:  end of block | 0 | ||||||||||||
| 703 | - | |||||||||||||
| 704 | void QWindowSystemInterface::handleGestureEventWithSequenceIdAndValue(QWindow *window, ulong timestamp, Qt::NativeGestureType type, | - | ||||||||||||
| 705 | ulong sequenceId, quint64 value, QPointF &local, QPointF &global) | - | ||||||||||||
| 706 | { | - | ||||||||||||
| 707 | QWindowSystemInterfacePrivate::GestureEvent *e = | - | ||||||||||||
| 708 | new QWindowSystemInterfacePrivate::GestureEvent(window, timestamp, type, local, global); | - | ||||||||||||
| 709 | e->sequenceId = sequenceId; | - | ||||||||||||
| 710 | e->intValue = value; | - | ||||||||||||
| 711 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 712 | } never executed:  end of block | 0 | ||||||||||||
| 713 | - | |||||||||||||
| 714 | - | |||||||||||||
| 715 | void QWindowSystemInterface::handlePlatformPanelEvent(QWindow *w) | - | ||||||||||||
| 716 | { | - | ||||||||||||
| 717 | QWindowSystemInterfacePrivate::PlatformPanelEvent *e = | - | ||||||||||||
| 718 | new QWindowSystemInterfacePrivate::PlatformPanelEvent(w); | - | ||||||||||||
| 719 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 720 | } never executed:  end of block | 0 | ||||||||||||
| 721 | - | |||||||||||||
| 722 | - | |||||||||||||
| 723 | void QWindowSystemInterface::handleContextMenuEvent(QWindow *w, bool mouseTriggered, | - | ||||||||||||
| 724 | const QPoint &pos, const QPoint &globalPos, | - | ||||||||||||
| 725 | Qt::KeyboardModifiers modifiers) | - | ||||||||||||
| 726 | { | - | ||||||||||||
| 727 | QWindowSystemInterfacePrivate::ContextMenuEvent *e = | - | ||||||||||||
| 728 | new QWindowSystemInterfacePrivate::ContextMenuEvent(w, mouseTriggered, pos, | - | ||||||||||||
| 729 | globalPos, modifiers); | - | ||||||||||||
| 730 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 731 | } never executed:  end of block | 0 | ||||||||||||
| 732 | - | |||||||||||||
| 733 | - | |||||||||||||
| 734 | - | |||||||||||||
| 735 | void QWindowSystemInterface::handleEnterWhatsThisEvent() | - | ||||||||||||
| 736 | { | - | ||||||||||||
| 737 | QWindowSystemInterfacePrivate::WindowSystemEvent *e = | - | ||||||||||||
| 738 | new QWindowSystemInterfacePrivate::WindowSystemEvent(QWindowSystemInterfacePrivate::EnterWhatsThisMode); | - | ||||||||||||
| 739 | QWindowSystemInterfacePrivate::handleWindowSystemEvent(e); | - | ||||||||||||
| 740 | } never executed:  end of block | 0 | ||||||||||||
| 741 | - | |||||||||||||
| 742 | - | |||||||||||||
| 743 | - | |||||||||||||
| 744 | __attribute__((visibility("default"))) QDebug operator<<(QDebug dbg, const QWindowSystemInterface::TouchPoint &p) | - | ||||||||||||
| 745 | { | - | ||||||||||||
| 746 | QDebugStateSaver saver(dbg); | - | ||||||||||||
| 747 | dbg.nospace() << "TouchPoint(" << p.id << " @" << p.area << " normalized " << p.normalPosition | - | ||||||||||||
| 748 | << " press " << p.pressure << " vel " << p.velocity << " state " << (int)p.state; | - | ||||||||||||
| 749 |     return never executed:   dbg;return dbg;never executed:  return dbg; | 0 | ||||||||||||
| 750 | } | - | ||||||||||||
| 751 | - | |||||||||||||
| 752 | - | |||||||||||||
| 753 | - | |||||||||||||
| 754 | - | |||||||||||||
| 755 | - | |||||||||||||
| 756 | __attribute__((visibility("default"))) void qt_handleMouseEvent(QWindow *w, const QPointF &local, const QPointF &global, Qt::MouseButtons b, Qt::KeyboardModifiers mods, int timestamp) | - | ||||||||||||
| 757 | { | - | ||||||||||||
| 758 | bool wasSynchronous = QWindowSystemInterfacePrivate::synchronousWindowSystemEvents; | - | ||||||||||||
| 759 | QWindowSystemInterface::setSynchronousWindowSystemEvents(true); | - | ||||||||||||
| 760 | const qreal factor = QHighDpiScaling::factor(w); | - | ||||||||||||
| 761 | QWindowSystemInterface::handleMouseEvent(w, timestamp, local * factor, | - | ||||||||||||
| 762 | global * factor, b, mods); | - | ||||||||||||
| 763 | QWindowSystemInterface::setSynchronousWindowSystemEvents(wasSynchronous); | - | ||||||||||||
| 764 | } never executed:  end of block | 0 | ||||||||||||
| 765 | - | |||||||||||||
| 766 | - | |||||||||||||
| 767 | __attribute__((visibility("default"))) void qt_handleMouseEvent(QWindow *w, const QPointF &local, const QPointF &global, Qt::MouseButtons b, Qt::KeyboardModifiers mods = Qt::NoModifier) | - | ||||||||||||
| 768 | { | - | ||||||||||||
| 769 | qt_handleMouseEvent(w, local, global, b, mods, QWindowSystemInterfacePrivate::eventTime.elapsed()); | - | ||||||||||||
| 770 | } never executed:  end of block | 0 | ||||||||||||
| 771 | - | |||||||||||||
| 772 | __attribute__((visibility("default"))) void qt_handleKeyEvent(QWindow *w, QEvent::Type t, int k, Qt::KeyboardModifiers mods, const QString & text = QString(), bool autorep = false, ushort count = 1) | - | ||||||||||||
| 773 | { | - | ||||||||||||
| 774 | bool wasSynchronous = QWindowSystemInterfacePrivate::synchronousWindowSystemEvents; | - | ||||||||||||
| 775 | QWindowSystemInterface::setSynchronousWindowSystemEvents(true); | - | ||||||||||||
| 776 | QWindowSystemInterface::handleKeyEvent(w, t, k, mods, text, autorep, count); | - | ||||||||||||
| 777 | QWindowSystemInterface::setSynchronousWindowSystemEvents(wasSynchronous); | - | ||||||||||||
| 778 | } never executed:  end of block | 0 | ||||||||||||
| 779 | - | |||||||||||||
| 780 | __attribute__((visibility("default"))) bool qt_sendShortcutOverrideEvent(QObject *o, ulong timestamp, int k, Qt::KeyboardModifiers mods, const QString &text = QString(), bool autorep = false, ushort count = 1) | - | ||||||||||||
| 781 | { | - | ||||||||||||
| 782 | QGuiApplicationPrivate::modifier_buttons = mods; | - | ||||||||||||
| 783 | - | |||||||||||||
| 784 | QKeyEvent qevent(QEvent::ShortcutOverride, k, mods, text, autorep, count); | - | ||||||||||||
| 785 | qevent.setTimestamp(timestamp); | - | ||||||||||||
| 786 | - | |||||||||||||
| 787 | QShortcutMap &shortcutMap = QGuiApplicationPrivate::instance()->shortcutMap; | - | ||||||||||||
| 788 |     if (shortcutMap.state() == QKeySequence::NoMatch
  | 0 | ||||||||||||
| 789 | - | |||||||||||||
| 790 | QCoreApplication::sendEvent(o, &qevent); | - | ||||||||||||
| 791 |         if (qevent.isAccepted()
  | 0 | ||||||||||||
| 792 |             return never executed:   false;return false;never executed:  return false; | 0 | ||||||||||||
| 793 |     } never executed:  end of block | 0 | ||||||||||||
| 794 | - | |||||||||||||
| 795 | - | |||||||||||||
| 796 |     return never executed:   shortcutMap.tryShortcut(&qevent);return shortcutMap.tryShortcut(&qevent);never executed:  return shortcutMap.tryShortcut(&qevent); | 0 | ||||||||||||
| 797 | } | - | ||||||||||||
| 798 | - | |||||||||||||
| 799 | __attribute__((visibility("default"))) void qt_handleTouchEvent(QWindow *w, QTouchDevice *device, | - | ||||||||||||
| 800 | const QList<QTouchEvent::TouchPoint> &points, | - | ||||||||||||
| 801 | Qt::KeyboardModifiers mods = Qt::NoModifier) | - | ||||||||||||
| 802 | { | - | ||||||||||||
| 803 | bool wasSynchronous = QWindowSystemInterfacePrivate::synchronousWindowSystemEvents; | - | ||||||||||||
| 804 | QWindowSystemInterface::setSynchronousWindowSystemEvents(true); | - | ||||||||||||
| 805 | QWindowSystemInterface::handleTouchEvent(w, device, | - | ||||||||||||
| 806 | QWindowSystemInterfacePrivate::toNativeTouchPoints(points, w), mods); | - | ||||||||||||
| 807 | QWindowSystemInterface::setSynchronousWindowSystemEvents(wasSynchronous); | - | ||||||||||||
| 808 | } never executed:  end of block | 0 | ||||||||||||
| 809 | - | |||||||||||||
| 810 | QWindowSystemEventHandler::~QWindowSystemEventHandler() | - | ||||||||||||
| 811 | { | - | ||||||||||||
| 812 | QWindowSystemInterfacePrivate::removeWindowSystemEventhandler(this); | - | ||||||||||||
| 813 | } never executed:  end of block | 0 | ||||||||||||
| 814 | - | |||||||||||||
| 815 | bool QWindowSystemEventHandler::sendEvent(QWindowSystemInterfacePrivate::WindowSystemEvent *e) | - | ||||||||||||
| 816 | { | - | ||||||||||||
| 817 | QGuiApplicationPrivate::processWindowSystemEvent(e); | - | ||||||||||||
| 818 |     return never executed:   true;return true;never executed:  return true; | 0 | ||||||||||||
| 819 | } | - | ||||||||||||
| 820 | - | |||||||||||||
| 821 | QWindowSystemInterfacePrivate::WheelEvent::WheelEvent(QWindow *w, ulong time, const QPointF &local, const QPointF &global, QPoint pixelD, | - | ||||||||||||
| 822 | QPoint angleD, int qt4D, Qt::Orientation qt4O, Qt::KeyboardModifiers mods, Qt::ScrollPhase phase, Qt::MouseEventSource src) | - | ||||||||||||
| 823 | : InputEvent(w, time, Wheel, mods), pixelDelta(pixelD), angleDelta(angleD), qt4Delta(qt4D), | - | ||||||||||||
| 824 | qt4Orientation(qt4O), localPos(local), globalPos(global), | - | ||||||||||||
| 825 | phase(!QGuiApplicationPrivate::scrollNoPhaseAllowed && phase == Qt::NoScrollPhase ? Qt::ScrollUpdate : phase), | - | ||||||||||||
| 826 | source(src) | - | ||||||||||||
| 827 | { | - | ||||||||||||
| 828 | } never executed:  end of block | 0 | ||||||||||||
| 829 | - | |||||||||||||
| 830 | - | |||||||||||||
| Switch to Source code | Preprocessed file |