yuzu-emu
/
yuzu
Archived
1
0
Fork 0

Merge pull request #7545 from Morph1984/qt-deprecated-warn

profiler: Use QWheelEvent position().toPoint()
This commit is contained in:
bunnei 2021-12-08 22:01:35 -08:00 committed by GitHub
commit 25298d1c02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ void MicroProfileWidget::mouseReleaseEvent(QMouseEvent* ev) {
} }
void MicroProfileWidget::wheelEvent(QWheelEvent* 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, MicroProfileMousePosition(wheel_position.x() / x_scale, wheel_position.y() / y_scale,
ev->angleDelta().y() / 120); ev->angleDelta().y() / 120);
ev->accept(); ev->accept();