Description

This commit is contained in:
DanielSvoboda 2025-02-25 18:19:32 -03:00
parent b6ab8de2b9
commit b0c8f8538b
3 changed files with 18 additions and 23 deletions

View File

@ -228,14 +228,12 @@ SettingsDialog::SettingsDialog(std::span<const QString> physical_devices,
// User TAB // User TAB
{ {
connect(ui->OpenCustom_trophyLocationButton, &QPushButton::clicked, this, []() { connect(ui->OpenCustomTrophyLocationButton, &QPushButton::clicked, this, []() {
QString userPath; QString userPath;
Common::FS::PathToQString(userPath, Common::FS::PathToQString(userPath,
Common::FS::GetUserPath(Common::FS::PathType::CustomTrophy)); Common::FS::GetUserPath(Common::FS::PathType::CustomTrophy));
QDesktopServices::openUrl(QUrl::fromLocalFile(userPath)); QDesktopServices::openUrl(QUrl::fromLocalFile(userPath));
}); });
ui->label_Custom_Trophy->setText(ui->label_Custom_Trophy->text().replace("\\n", "\n"));
} }
// Input TAB // Input TAB
@ -321,6 +319,9 @@ SettingsDialog::SettingsDialog(std::span<const QString> physical_devices,
ui->checkCompatibilityOnStartupCheckBox->installEventFilter(this); ui->checkCompatibilityOnStartupCheckBox->installEventFilter(this);
ui->updateCompatibilityButton->installEventFilter(this); ui->updateCompatibilityButton->installEventFilter(this);
// User
ui->OpenCustomTrophyLocationButton->installEventFilter(this);
// Input // Input
ui->hideCursorGroupBox->installEventFilter(this); ui->hideCursorGroupBox->installEventFilter(this);
ui->idleTimeoutGroupBox->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."); 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 // Input
if (elementName == "hideCursorGroupBox") { 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."); 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.");

View File

@ -59,7 +59,7 @@
</size> </size>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>6</number> <number>0</number>
</property> </property>
<widget class="QScrollArea" name="generalTab"> <widget class="QScrollArea" name="generalTab">
<property name="widgetResizable"> <property name="widgetResizable">
@ -1292,18 +1292,9 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_Custom_Trophy"> <widget class="QPushButton" name="OpenCustomTrophyLocationButton">
<property name="text"> <property name="text">
<string>It is possible to add custom images to the trophies. <string>Open custom trophy image folder</string>
Add the files to custom_trophy with the following names:
bronze.png, gold.png, platinum.png, silver.png</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="OpenCustom_trophyLocationButton">
<property name="text">
<string>Open custom_trophy folder</string>
</property> </property>
</widget> </widget>
</item> </item>

View File

@ -1312,14 +1312,8 @@
<translation>Trophy</translation> <translation>Trophy</translation>
</message> </message>
<message> <message>
<source>It is possible to add custom images to the trophies. <source>Open custom trophy image folder</source>
Add the files to custom_trophy with the following names: <translation>Open custom trophy image folder</translation>
bronze.png, gold.png, platinum.png, silver.png</source>
<translation>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</translation>
</message>
<message>
<source>Open custom_trophy folder</source>
<translation>Open custom_trophy folder</translation>
</message> </message>
<message> <message>
<source>Logger</source> <source>Logger</source>
@ -1621,6 +1615,10 @@ bronze.png, gold.png, platinum.png, silver.png</source>
<source>Update Compatibility Database:\nImmediately update the compatibility database.</source> <source>Update Compatibility Database:\nImmediately update the compatibility database.</source>
<translation>Update Compatibility Database:\nImmediately update the compatibility database.</translation> <translation>Update Compatibility Database:\nImmediately update the compatibility database.</translation>
</message> </message>
<message>
<source>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</source>
<translation>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</translation>
</message>
<message> <message>
<source>Never</source> <source>Never</source>
<translation>Never</translation> <translation>Never</translation>