| 156 | } |
| 157 | |
| 158 | void TOPPASWidget::keyReleaseEvent(QKeyEvent * e) |
| 159 | { |
| 160 | if (e->key() == Qt::Key_Control) |
| 161 | { |
| 162 | setDragMode(QGraphicsView::ScrollHandDrag); |
| 163 | //color of hovering edge may change |
| 164 | TOPPASEdge* hover_edge = scene_->getHoveringEdge(); |
| 165 | if (hover_edge) |
| 166 | { |
| 167 | hover_edge->update(); |
| 168 | } |
| 169 | e->accept(); |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | void TOPPASWidget::leaveEvent(QEvent * /*e*/) |
| 174 | { |
nothing calls this directly
no test coverage detected