| 386 | } |
| 387 | |
| 388 | mitk::InteractionEvent::ModifierKeys QmitkRenderWindow::GetModifiers(QInputEvent *me) const |
| 389 | { |
| 390 | mitk::InteractionEvent::ModifierKeys modifiers = mitk::InteractionEvent::NoKey; |
| 391 | |
| 392 | if (me->modifiers() & Qt::ALT) |
| 393 | { |
| 394 | modifiers = modifiers | mitk::InteractionEvent::AltKey; |
| 395 | } |
| 396 | if (me->modifiers() & Qt::CTRL) |
| 397 | { |
| 398 | modifiers = modifiers | mitk::InteractionEvent::ControlKey; |
| 399 | } |
| 400 | if (me->modifiers() & Qt::SHIFT) |
| 401 | { |
| 402 | modifiers = modifiers | mitk::InteractionEvent::ShiftKey; |
| 403 | } |
| 404 | return modifiers; |
| 405 | } |
| 406 | |
| 407 | mitk::InteractionEvent::MouseButtons QmitkRenderWindow::GetButtonState(QWheelEvent *we) const |
| 408 | { |
no outgoing calls