mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-22 08:38:00 -05:00
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
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user