MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / leaveEvent

Method leaveEvent

DSView/pv/view/viewport.cpp:1460–1488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1458}
1459
1460void Viewport::leaveEvent(QEvent *)
1461{
1462 _mouse_point = QPoint(-1, -1);
1463
1464 if (_action_type == LOGIC_EDGE) {
1465 _edge_rising = 0;
1466 _edge_falling = 0;
1467 set_action(NO_ACTION);
1468 }
1469 else if (_action_type == LOGIC_JUMP) {
1470 _edge_rising = 0;
1471 _edge_falling = 0;
1472 set_action(NO_ACTION);
1473 }
1474 else if (_action_type == LOGIC_MOVE) {
1475 _drag_strength = 0;
1476 _drag_timer.stop();
1477 set_action(NO_ACTION);
1478 }
1479 else if (_action_type == DSO_XM_STEP1 || _action_type == DSO_XM_STEP2) {
1480 clear_dso_xm();
1481 }
1482 else if (_action_type == DSO_YM) {
1483 _dso_ym_valid = false;
1484 set_action(NO_ACTION);
1485 }
1486
1487 clear_measure();
1488}
1489
1490void Viewport::resizeEvent(QResizeEvent*)
1491{

Callers

nothing calls this directly

Calls 1

stopMethod · 0.45

Tested by

no test coverage detected