diff options
| author | Romain Failliot <romain.failliot@foolstep.com> | 2021-10-11 10:43:39 -0400 |
|---|---|---|
| committer | Romain Failliot <romain.failliot@foolstep.com> | 2021-10-11 19:21:17 -0400 |
| commit | deb8c58ce8cc6c34ffd03d11e3a41edca5a21eaa (patch) | |
| tree | f0e02f1fd4facc191efc1bd5a68136202cad2e89 /src/yuzu/debugger/profiler.cpp | |
| parent | df32c5e496eb8bc590ca18e16935c92052d2dd4a (diff) | |
Fix a few warnings
- configure_input_player_widget.cpp: always better to use `const auto &`
whenever possible
- profiler.cpp: `ev->pos()` is deprecated, replace with
`ev->position()`, which returns floats, thus the addition of
`.toPoint()` (same as what's happening in `pos()`)
- game_list.cpp: `QString::SplitBehavior` is deprecate, use `Qt::`
namespace instead
Diffstat (limited to 'src/yuzu/debugger/profiler.cpp')
| -rw-r--r-- | src/yuzu/debugger/profiler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu/debugger/profiler.cpp b/src/yuzu/debugger/profiler.cpp index 7a6f84d967..778c25a9f3 100644 --- a/src/yuzu/debugger/profiler.cpp +++ b/src/yuzu/debugger/profiler.cpp @@ -160,8 +160,8 @@ void MicroProfileWidget::mouseReleaseEvent(QMouseEvent* ev) { } void MicroProfileWidget::wheelEvent(QWheelEvent* ev) { - MicroProfileMousePosition(ev->pos().x() / x_scale, ev->pos().y() / y_scale, - ev->angleDelta().y() / 120); + MicroProfileMousePosition(ev->position().toPoint().x() / x_scale, + ev->position().toPoint().y() / y_scale, ev->angleDelta().y() / 120); ev->accept(); } |
