| 1458 | } |
| 1459 | |
| 1460 | void 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 | |
| 1490 | void Viewport::resizeEvent(QResizeEvent*) |
| 1491 | { |