From b0c8f8538b19b1556afbab2db43416a60c188202 Mon Sep 17 00:00:00 2001 From: DanielSvoboda Date: Tue, 25 Feb 2025 18:19:32 -0300 Subject: [PATCH] Description --- src/qt_gui/settings_dialog.cpp | 12 +++++++++--- src/qt_gui/settings_dialog.ui | 15 +++------------ src/qt_gui/translations/en_US.ts | 14 ++++++-------- 3 files changed, 18 insertions(+), 23 deletions(-) diff --git a/src/qt_gui/settings_dialog.cpp b/src/qt_gui/settings_dialog.cpp index 358866fb6..8b5dd28fc 100644 --- a/src/qt_gui/settings_dialog.cpp +++ b/src/qt_gui/settings_dialog.cpp @@ -228,14 +228,12 @@ SettingsDialog::SettingsDialog(std::span physical_devices, // User TAB { - connect(ui->OpenCustom_trophyLocationButton, &QPushButton::clicked, this, []() { + connect(ui->OpenCustomTrophyLocationButton, &QPushButton::clicked, this, []() { QString userPath; Common::FS::PathToQString(userPath, Common::FS::GetUserPath(Common::FS::PathType::CustomTrophy)); QDesktopServices::openUrl(QUrl::fromLocalFile(userPath)); }); - - ui->label_Custom_Trophy->setText(ui->label_Custom_Trophy->text().replace("\\n", "\n")); } // Input TAB @@ -321,6 +319,9 @@ SettingsDialog::SettingsDialog(std::span physical_devices, ui->checkCompatibilityOnStartupCheckBox->installEventFilter(this); ui->updateCompatibilityButton->installEventFilter(this); + // User + ui->OpenCustomTrophyLocationButton->installEventFilter(this); + // Input ui->hideCursorGroupBox->installEventFilter(this); ui->idleTimeoutGroupBox->installEventFilter(this); @@ -606,6 +607,11 @@ void SettingsDialog::updateNoteTextEdit(const QString& elementName) { text = tr("Update Compatibility Database:\\nImmediately update the compatibility database."); } + //User + if (elementName == "OpenCustomTrophyLocationButton") { + text = tr("It is possible to add custom images to the trophies.\\nAdd the files to custom_trophy with the following names:\\nbronze.png, gold.png, platinum.png, silver.png"); + } + // Input if (elementName == "hideCursorGroupBox") { text = tr("Hide Cursor:\\nChoose when the cursor will disappear:\\nNever: You will always see the mouse.\\nidle: Set a time for it to disappear after being idle.\\nAlways: you will never see the mouse."); diff --git a/src/qt_gui/settings_dialog.ui b/src/qt_gui/settings_dialog.ui index f8b0724c9..f8d087397 100644 --- a/src/qt_gui/settings_dialog.ui +++ b/src/qt_gui/settings_dialog.ui @@ -59,7 +59,7 @@ - 6 + 0 @@ -1292,18 +1292,9 @@ - + - It is possible to add custom images to the trophies. -Add the files to custom_trophy with the following names: -bronze.png, gold.png, platinum.png, silver.png - - - - - - - Open custom_trophy folder + Open custom trophy image folder diff --git a/src/qt_gui/translations/en_US.ts b/src/qt_gui/translations/en_US.ts index f959d0c43..ceb72d2d0 100644 --- a/src/qt_gui/translations/en_US.ts +++ b/src/qt_gui/translations/en_US.ts @@ -1312,14 +1312,8 @@ Trophy - It is possible to add custom images to the trophies. -Add the files to custom_trophy with the following names: -bronze.png, gold.png, platinum.png, silver.png - It is possible to add custom images to the trophies.\nAdd the files to custom_trophy with the following names:\nbronze.png, gold.png, platinum.png, silver.png - - - Open custom_trophy folder - Open custom_trophy folder + Open custom trophy image folder + Open custom trophy image folder Logger @@ -1621,6 +1615,10 @@ bronze.png, gold.png, platinum.png, silver.png Update Compatibility Database:\nImmediately update the compatibility database. Update Compatibility Database:\nImmediately update the compatibility database. + + It is possible to add custom images to the trophies.\nAdd the files to custom_trophy with the following names:\nbronze.png, gold.png, platinum.png, silver.png + It is possible to add custom images to the trophies.\nAdd the files to custom_trophy with the following names:\nbronze.png, gold.png, platinum.png, silver.png + Never Never