mirror of
https://github.com/yuzu-emu/yuzu-mainline
synced 2024-11-23 01:13:54 +00:00
profiler: Use QWheelEvent position().toPoint()
QWheelEvent::pos() is deprecated. Make use of position().toPoint() instead.
This commit is contained in:
parent
7dd2764f2a
commit
9ba812485a
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue