| 90 | } |
| 91 | |
| 92 | bool TopLevelWidget::PrivateData::motionEvent(const MotionEvent& ev) |
| 93 | { |
| 94 | // ignore event if we are not visible |
| 95 | if (! selfw->pData->visible) |
| 96 | return false; |
| 97 | |
| 98 | MotionEvent rev = ev; |
| 99 | |
| 100 | if (window.pData->autoScaling) |
| 101 | { |
| 102 | const double autoScaleFactor = window.pData->autoScaleFactor; |
| 103 | |
| 104 | rev.pos.setX(ev.pos.getX() / autoScaleFactor); |
| 105 | rev.pos.setY(ev.pos.getY() / autoScaleFactor); |
| 106 | rev.absolutePos.setX(ev.absolutePos.getX() / autoScaleFactor); |
| 107 | rev.absolutePos.setY(ev.absolutePos.getY() / autoScaleFactor); |
| 108 | } |
| 109 | |
| 110 | // propagate event to all subwidgets recursively |
| 111 | return selfw->pData->giveMotionEventForSubWidgets(rev); |
| 112 | } |
| 113 | |
| 114 | bool TopLevelWidget::PrivateData::scrollEvent(const ScrollEvent& ev) |
| 115 | { |
nothing calls this directly
no test coverage detected