From 9dc71e33478f4a9cfeac0b263ea6ddd8e8b7b1df Mon Sep 17 00:00:00 2001 From: coop152 <40497580+coop152@users.noreply.github.com> Date: Sun, 30 Apr 2023 16:28:49 +0100 Subject: [PATCH] Fix broken label in touch mapping dialog (#6489) --- src/citra_qt/configuration/configure_touch_from_button.cpp | 4 ++-- src/citra_qt/dumping/option_set_dialog.cpp | 2 +- src/citra_qt/main.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/citra_qt/configuration/configure_touch_from_button.cpp b/src/citra_qt/configuration/configure_touch_from_button.cpp index dfab296ef..6dcd1cc4f 100644 --- a/src/citra_qt/configuration/configure_touch_from_button.cpp +++ b/src/citra_qt/configuration/configure_touch_from_button.cpp @@ -511,7 +511,7 @@ void TouchScreenPreview::mouseMoveEvent(QMouseEvent* event) { } const auto pos = MapToDeviceCoords(event->x(), event->y()); if (pos) { - coord_label->setText(QStringLiteral("X: %1, Y: %2").arg(pos->x(), pos->y())); + coord_label->setText(QStringLiteral("X: %1, Y: %2").arg(pos->x()).arg(pos->y())); } else { coord_label->clear(); } @@ -572,7 +572,7 @@ bool TouchScreenPreview::eventFilter(QObject* obj, QEvent* event) { emit DotMoved(drag_state.dot->property(PropId).toInt(), *device_coord); if (coord_label) { coord_label->setText( - QStringLiteral("X: %1, Y: %2").arg(device_coord->x(), device_coord->y())); + QStringLiteral("X: %1, Y: %2").arg(device_coord->x()).arg(device_coord->y())); } } return true; diff --git a/src/citra_qt/dumping/option_set_dialog.cpp b/src/citra_qt/dumping/option_set_dialog.cpp index eaa85655d..84fd619f9 100644 --- a/src/citra_qt/dumping/option_set_dialog.cpp +++ b/src/citra_qt/dumping/option_set_dialog.cpp @@ -114,7 +114,7 @@ void OptionSetDialog::InitializeUI(const std::string& initial_value) { ui->formatLabel->text().append(QStringLiteral("\n")); } ui->formatLabel->setText( - ui->formatLabel->text().append(tr("Range: %1 - %2").arg(option.min, option.max))); + ui->formatLabel->text().append(tr("Range: %1 - %2").arg(option.min).arg(option.max))); } // Decide and initialize layout diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index 3b5e104ce..1617968cc 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -2248,7 +2248,7 @@ void GMainWindow::UpdateStatusBar() { message_label_used_for_movie = true; ui->action_Save_Movie->setEnabled(true); } else if (play_mode == Core::Movie::PlayMode::Playing) { - message_label->setText(tr("Playing %1 / %2").arg(current, total)); + message_label->setText(tr("Playing %1 / %2").arg(current).arg(total)); message_label_used_for_movie = true; ui->action_Save_Movie->setEnabled(false); } else if (play_mode == Core::Movie::PlayMode::MovieFinished) {