mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 08:22:32 +00:00
text and button - settings
This commit is contained in:
parent
3d6b882aa1
commit
b6ab8de2b9
@ -225,6 +225,19 @@ SettingsDialog::SettingsDialog(std::span<const QString> physical_devices,
|
|||||||
Config::setShowBackgroundImage(state == Qt::Checked);
|
Config::setShowBackgroundImage(state == Qt::Checked);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// User TAB
|
||||||
|
{
|
||||||
|
connect(ui->OpenCustom_trophyLocationButton, &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
|
// Input TAB
|
||||||
{
|
{
|
||||||
connect(ui->hideCursorComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this,
|
connect(ui->hideCursorComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this,
|
||||||
@ -280,8 +293,8 @@ SettingsDialog::SettingsDialog(std::span<const QString> physical_devices,
|
|||||||
connect(ui->OpenLogLocationButton, &QPushButton::clicked, this, []() {
|
connect(ui->OpenLogLocationButton, &QPushButton::clicked, this, []() {
|
||||||
QString userPath;
|
QString userPath;
|
||||||
Common::FS::PathToQString(userPath,
|
Common::FS::PathToQString(userPath,
|
||||||
Common::FS::GetUserPath(Common::FS::PathType::UserDir));
|
Common::FS::GetUserPath(Common::FS::PathType::LogDir));
|
||||||
QDesktopServices::openUrl(QUrl::fromLocalFile(userPath + "/log"));
|
QDesktopServices::openUrl(QUrl::fromLocalFile(userPath));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1243,73 +1243,89 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="vLayoutTrophy">
|
<layout class="QVBoxLayout" name="vLayoutTrophy">
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="bottomMargin">
|
<property name="bottomMargin">
|
||||||
<number>50</number>
|
<number>50</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="hLayoutTrophy">
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="trophyGroupBox">
|
<layout class="QHBoxLayout" name="hLayoutTrophy">
|
||||||
<property name="title">
|
<item>
|
||||||
<string>Trophy</string>
|
<widget class="QGroupBox" name="trophyGroupBox">
|
||||||
</property>
|
<property name="title">
|
||||||
<layout class="QVBoxLayout" name="userNameLayout_2">
|
<string>Trophy</string>
|
||||||
<item>
|
</property>
|
||||||
<widget class="QCheckBox" name="disableTrophycheckBox">
|
<layout class="QVBoxLayout" name="userNameLayout_2">
|
||||||
<property name="text">
|
<item>
|
||||||
<string>Disable Trophy Pop-ups</string>
|
<widget class="QCheckBox" name="disableTrophycheckBox">
|
||||||
</property>
|
<property name="text">
|
||||||
</widget>
|
<string>Disable Trophy Pop-ups</string>
|
||||||
</item>
|
</property>
|
||||||
<item>
|
</widget>
|
||||||
<widget class="QLabel" name="label_Trophy">
|
</item>
|
||||||
<property name="text">
|
<item>
|
||||||
<string>Trophy Key</string>
|
<widget class="QLabel" name="label_Trophy">
|
||||||
</property>
|
<property name="text">
|
||||||
</widget>
|
<string>Trophy Key</string>
|
||||||
</item>
|
</property>
|
||||||
<item>
|
</widget>
|
||||||
<widget class="QLineEdit" name="trophyKeyLineEdit">
|
</item>
|
||||||
<property name="minimumSize">
|
<item>
|
||||||
<size>
|
<widget class="QLineEdit" name="trophyKeyLineEdit">
|
||||||
<width>0</width>
|
<property name="minimumSize">
|
||||||
<height>0</height>
|
<size>
|
||||||
</size>
|
<width>0</width>
|
||||||
</property>
|
<height>0</height>
|
||||||
<property name="font">
|
</size>
|
||||||
<font>
|
</property>
|
||||||
<pointsize>10</pointsize>
|
<property name="font">
|
||||||
<bold>false</bold>
|
<font>
|
||||||
</font>
|
<pointsize>10</pointsize>
|
||||||
</property>
|
<bold>false</bold>
|
||||||
</widget>
|
</font>
|
||||||
</item>
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_Custom_Trophy">
|
||||||
|
<property name="text">
|
||||||
|
<string>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</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="OpenCustom_trophyLocationButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>Open custom_trophy folder</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_3">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Orientation::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
<item>
|
</layout>
|
||||||
<spacer name="horizontalSpacer_3">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Orientation::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="userTabSpacer">
|
<spacer name="userTabSpacer">
|
||||||
@ -1971,4 +1987,4 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
@ -1311,6 +1311,16 @@
|
|||||||
<source>Trophy</source>
|
<source>Trophy</source>
|
||||||
<translation>Trophy</translation>
|
<translation>Trophy</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>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</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>
|
||||||
<source>Logger</source>
|
<source>Logger</source>
|
||||||
<translation>Logger</translation>
|
<translation>Logger</translation>
|
||||||
|
Loading…
Reference in New Issue
Block a user