MCPcopy Create free account
hub / github.com/comaps/comaps / qtTouchEventTypeToDfTouchEventType

Function qtTouchEventTypeToDfTouchEventType

qt/draw_widget.cpp:82–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80
81#if defined(OMIM_OS_LINUX)
82df::TouchEvent::ETouchType qtTouchEventTypeToDfTouchEventType(QEvent::Type qEventType)
83{
84 switch (qEventType)
85 {
86 case QEvent::TouchBegin: return df::TouchEvent::TOUCH_DOWN;
87 case QEvent::TouchEnd: return df::TouchEvent::TOUCH_UP;
88 case QEvent::TouchUpdate: return df::TouchEvent::TOUCH_MOVE;
89 case QEvent::TouchCancel: return df::TouchEvent::TOUCH_CANCEL;
90 default: return df::TouchEvent::TOUCH_NONE;
91 }
92}
93#endif
94} // namespace
95

Callers 1

eventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected