From 33b1478f8e1e3505c944ccdf59827a914a402e6c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 25 Jan 2022 23:51:08 +0100 Subject: gui/options-dialog: pretty-print mouse buttons Issue: #583 --- gui/lang/nl_NL.ts | 4 ++++ gui/lang/ru_RU.ts | 4 ++++ gui/lang/stub.ts | 4 ++++ gui/lang/zh_CN.ts | 4 ++++ gui/options-dialog.cpp | 5 ++++- 5 files changed, 20 insertions(+), 1 deletion(-) (limited to 'gui') diff --git a/gui/lang/nl_NL.ts b/gui/lang/nl_NL.ts index 7dc8d899..95066985 100644 --- a/gui/lang/nl_NL.ts +++ b/gui/lang/nl_NL.ts @@ -396,6 +396,10 @@ Press "clear calibration" to remove any calibration data pertaining to Filter + + Mouse %1 + + process_detector diff --git a/gui/lang/ru_RU.ts b/gui/lang/ru_RU.ts index a8cc6040..aad93005 100644 --- a/gui/lang/ru_RU.ts +++ b/gui/lang/ru_RU.ts @@ -399,6 +399,10 @@ Press "clear calibration" to remove any calibration data pertaining to Filter + + Mouse %1 + + process_detector diff --git a/gui/lang/stub.ts b/gui/lang/stub.ts index 6baac339..c502d162 100644 --- a/gui/lang/stub.ts +++ b/gui/lang/stub.ts @@ -396,6 +396,10 @@ Press "clear calibration" to remove any calibration data pertaining to Filter + + Mouse %1 + + process_detector diff --git a/gui/lang/zh_CN.ts b/gui/lang/zh_CN.ts index 8c887e06..d4eeda75 100644 --- a/gui/lang/zh_CN.ts +++ b/gui/lang/zh_CN.ts @@ -397,6 +397,10 @@ Press "clear calibration" to remove any calibration data pertaining to Filter 过滤器 + + Mouse %1 + + process_detector diff --git a/gui/options-dialog.cpp b/gui/options-dialog.cpp index d121a0bd..d1769ea8 100644 --- a/gui/options-dialog.cpp +++ b/gui/options-dialog.cpp @@ -30,7 +30,10 @@ QString options_dialog::kopts_to_string(const key_opts& kopts) if (mods & Qt::ControlModifier) mm += "Control+"; if (mods & Qt::AltModifier) mm += "Alt+"; if (mods & Qt::ShiftModifier) mm += "Shift+"; - return mm + tr("Joy button %1").arg(QString::number(btn)); + const auto& str = kopts.guid == QStringLiteral("mouse") + ? tr("Mouse %1") + : tr("Joy button %1"); + return mm + str.arg(QString::number(btn)); } if (kopts.keycode->isEmpty()) return tr("None"); -- cgit v1.2.3