aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/debugger/profiler.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-12-08 15:25:46 -0500
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-12-08 15:25:46 -0500
commit006965d3c0e804ffbdaf5545425d9f80b0814001 (patch)
treeb830410aad9b9419285aa19f93bafeb2e600dd53 /src/yuzu/debugger/profiler.cpp
parenta42b2c0d60f4b9a934b49e9167a2946010bf8aaf (diff)
profiler: Use QWheelEvent position().toPoint()
QWheelEvent::pos() is deprecated. Make use of position().toPoint() instead.
Diffstat (limited to 'src/yuzu/debugger/profiler.cpp')
-rw-r--r--src/yuzu/debugger/profiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/debugger/profiler.cpp b/src/yuzu/debugger/profiler.cpp
index a8b2541999..33110685ab 100644
--- a/src/yuzu/debugger/profiler.cpp
+++ b/src/yuzu/debugger/profiler.cpp
@@ -163,7 +163,7 @@ void MicroProfileWidget::mouseReleaseEvent(QMouseEvent* ev) {
}
void MicroProfileWidget::wheelEvent(QWheelEvent* ev) {
- const auto wheel_position = ev->pos();
+ const auto wheel_position = ev->position().toPoint();
MicroProfileMousePosition(wheel_position.x() / x_scale, wheel_position.y() / y_scale,
ev->angleDelta().y() / 120);
ev->accept();