| 200 | |
| 201 | |
| 202 | void |
| 203 | FlowView:: |
| 204 | wheelEvent(QWheelEvent *event) |
| 205 | { |
| 206 | QPoint delta = event->angleDelta(); |
| 207 | |
| 208 | if (delta.y() == 0) |
| 209 | { |
| 210 | event->ignore(); |
| 211 | return; |
| 212 | } |
| 213 | |
| 214 | double const d = delta.y() / std::abs(delta.y()); |
| 215 | |
| 216 | if (d > 0.0) |
| 217 | scaleUp(); |
| 218 | else |
| 219 | scaleDown(); |
| 220 | } |
| 221 | |
| 222 | |
| 223 | void |
nothing calls this directly
no outgoing calls
no test coverage detected