diff options
| author | 2021-12-08 22:01:35 -0800 | |
|---|---|---|
| committer | 2021-12-08 22:01:35 -0800 | |
| commit | 25298d1c02bbb5d92391cae3340ac470dff8fa9e (patch) | |
| tree | b830410aad9b9419285aa19f93bafeb2e600dd53 /src | |
| parent | Merge pull request #7544 from Morph1984/r16g16 (diff) | |
| parent | profiler: Use QWheelEvent position().toPoint() (diff) | |
| download | yuzu-25298d1c02bbb5d92391cae3340ac470dff8fa9e.tar.gz yuzu-25298d1c02bbb5d92391cae3340ac470dff8fa9e.tar.xz yuzu-25298d1c02bbb5d92391cae3340ac470dff8fa9e.zip | |
Merge pull request #7545 from Morph1984/qt-deprecated-warn
profiler: Use QWheelEvent position().toPoint()
Diffstat (limited to '')
| -rw-r--r-- | src/yuzu/debugger/profiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/debugger/profiler.cpp b/src/yuzu/debugger/profiler.cpp index a8b254199..33110685a 100644 --- a/src/yuzu/debugger/profiler.cpp +++ b/src/yuzu/debugger/profiler.cpp | |||
| @@ -163,7 +163,7 @@ void MicroProfileWidget::mouseReleaseEvent(QMouseEvent* ev) { | |||
| 163 | } | 163 | } |
| 164 | 164 | ||
| 165 | void MicroProfileWidget::wheelEvent(QWheelEvent* ev) { | 165 | void MicroProfileWidget::wheelEvent(QWheelEvent* ev) { |
| 166 | const auto wheel_position = ev->pos(); | 166 | const auto wheel_position = ev->position().toPoint(); |
| 167 | MicroProfileMousePosition(wheel_position.x() / x_scale, wheel_position.y() / y_scale, | 167 | MicroProfileMousePosition(wheel_position.x() / x_scale, wheel_position.y() / y_scale, |
| 168 | ev->angleDelta().y() / 120); | 168 | ev->angleDelta().y() / 120); |
| 169 | ev->accept(); | 169 | ev->accept(); |