MCPcopy Create free account
hub / github.com/KLayout/klayout / mouseDoubleClickEvent

Function mouseDoubleClickEvent

src/laybasic/laybasic/layViewObject.cc:419–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417 }
418
419 void mouseDoubleClickEvent (QMouseEvent *e)
420 {
421 BEGIN_PROTECTED
422
423 db::DPoint p;
424#if QT_VERSION < 0x60000
425 p = db::DPoint (e->pos ().x (), e->pos ().y ());
426#else
427 p = db::DPoint (e->position ().x (), e->position ().y ());
428#endif
429
430 mp_view->send_mouse_double_clicked_event (p, qt_to_buttons (e->buttons (), e->modifiers ()));
431
432 END_PROTECTED
433 }
434
435 void
436#if QT_VERSION >= 0x60000

Calls 6

qt_to_buttonsFunction · 0.85
yMethod · 0.80
xMethod · 0.45
posMethod · 0.45
positionMethod · 0.45

Tested by

no test coverage detected