소스 검색

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

profiler: Use QWheelEvent position().toPoint()
bunnei 4 년 전
부모
커밋
25298d1c02
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/yuzu/debugger/profiler.cpp

+ 1 - 1
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();