summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-07-05 17:23:11 +0200
committerGitHub <noreply@github.com>2021-07-05 17:23:11 +0200
commitdd44089f87a63c0f8ec1bc8538d900ab0637e510 (patch)
tree671bcafaf8e679875aac354960767a7a918620a8
parentMerge pull request #6552 from Morph1984/c4189-msvc (diff)
parentprofiler: Fix deprecated functions (diff)
downloadyuzu-dd44089f87a63c0f8ec1bc8538d900ab0637e510.tar
yuzu-dd44089f87a63c0f8ec1bc8538d900ab0637e510.tar.gz
yuzu-dd44089f87a63c0f8ec1bc8538d900ab0637e510.tar.bz2
yuzu-dd44089f87a63c0f8ec1bc8538d900ab0637e510.tar.lz
yuzu-dd44089f87a63c0f8ec1bc8538d900ab0637e510.tar.xz
yuzu-dd44089f87a63c0f8ec1bc8538d900ab0637e510.tar.zst
yuzu-dd44089f87a63c0f8ec1bc8538d900ab0637e510.zip
-rw-r--r--src/yuzu/debugger/profiler.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/yuzu/debugger/profiler.cpp b/src/yuzu/debugger/profiler.cpp
index efdc6aa50..7a6f84d96 100644
--- a/src/yuzu/debugger/profiler.cpp
+++ b/src/yuzu/debugger/profiler.cpp
@@ -143,24 +143,25 @@ void MicroProfileWidget::hideEvent(QHideEvent* ev) {
}
void MicroProfileWidget::mouseMoveEvent(QMouseEvent* ev) {
- MicroProfileMousePosition(ev->x() / x_scale, ev->y() / y_scale, 0);
+ MicroProfileMousePosition(ev->pos().x() / x_scale, ev->pos().y() / y_scale, 0);
ev->accept();
}
void MicroProfileWidget::mousePressEvent(QMouseEvent* ev) {
- MicroProfileMousePosition(ev->x() / x_scale, ev->y() / y_scale, 0);
+ MicroProfileMousePosition(ev->pos().x() / x_scale, ev->pos().y() / y_scale, 0);
MicroProfileMouseButton(ev->buttons() & Qt::LeftButton, ev->buttons() & Qt::RightButton);
ev->accept();
}
void MicroProfileWidget::mouseReleaseEvent(QMouseEvent* ev) {
- MicroProfileMousePosition(ev->x() / x_scale, ev->y() / y_scale, 0);
+ MicroProfileMousePosition(ev->pos().x() / x_scale, ev->pos().y() / y_scale, 0);
MicroProfileMouseButton(ev->buttons() & Qt::LeftButton, ev->buttons() & Qt::RightButton);
ev->accept();
}
void MicroProfileWidget::wheelEvent(QWheelEvent* ev) {
- MicroProfileMousePosition(ev->x() / x_scale, ev->y() / y_scale, ev->delta() / 120);
+ MicroProfileMousePosition(ev->pos().x() / x_scale, ev->pos().y() / y_scale,
+ ev->angleDelta().y() / 120);
ev->accept();
}