mirror of https://github.com/PCSX2/pcsx2.git
Qt: Only hide global texture offset/skipdraw in release builds
This commit is contained in:
parent
307028734f
commit
6f40cf9beb
|
@ -291,15 +291,20 @@ GraphicsSettingsWidget::GraphicsSettingsWidget(SettingsDialog* dialog, QWidget*
|
||||||
updateRendererDependentOptions();
|
updateRendererDependentOptions();
|
||||||
|
|
||||||
// only allow disabling readbacks for per-game settings, it's too dangerous
|
// only allow disabling readbacks for per-game settings, it's too dangerous
|
||||||
|
#ifndef PCSX2_DEVBUILD
|
||||||
m_ui.disableHardwareReadbacks->setEnabled(m_dialog->isPerGameSettings());
|
m_ui.disableHardwareReadbacks->setEnabled(m_dialog->isPerGameSettings());
|
||||||
|
|
||||||
// allow Texture Offset for per-game settings only
|
// Remove texture offset and skipdraw range for global settings.
|
||||||
m_ui.textureOffsetX->setEnabled(m_dialog->isPerGameSettings());
|
if (!m_dialog->isPerGameSettings())
|
||||||
m_ui.textureOffsetY->setEnabled(m_dialog->isPerGameSettings());
|
{
|
||||||
|
m_ui.upscalingFixesLayout->removeRow(2);
|
||||||
// allow Skipdraw Range for per-game settings only
|
m_ui.hardwareFixesLayout->removeRow(2);
|
||||||
m_ui.skipDrawStart->setEnabled(m_dialog->isPerGameSettings());
|
m_ui.skipDrawStart = nullptr;
|
||||||
m_ui.skipDrawEnd->setEnabled(m_dialog->isPerGameSettings());
|
m_ui.skipDrawEnd = nullptr;
|
||||||
|
m_ui.textureOffsetX = nullptr;
|
||||||
|
m_ui.textureOffsetY = nullptr;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Display tab
|
// Display tab
|
||||||
{
|
{
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTabWidget" name="hardwareRendererGroup">
|
<widget class="QTabWidget" name="hardwareRendererGroup">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>1</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="documentMode">
|
<property name="documentMode">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
|
@ -699,7 +699,7 @@
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Hardware Fixes</string>
|
<string>Hardware Fixes</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QFormLayout" name="formLayout_2">
|
<layout class="QFormLayout" name="hardwareFixesLayout">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label_10">
|
<widget class="QLabel" name="label_10">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -883,7 +883,7 @@
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Upscaling Fixes</string>
|
<string>Upscaling Fixes</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QFormLayout" name="formLayout_5">
|
<layout class="QFormLayout" name="upscalingFixesLayout">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label_14">
|
<widget class="QLabel" name="label_14">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -942,16 +942,16 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="QLabel" name="label_16">
|
<widget class="QLabel" name="textureOffsetLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Texture Offsets:</string>
|
<string>Texture Offsets:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
<item row="2" column="1">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2" stretch="0,1,0,1">
|
<layout class="QHBoxLayout" name="textureOffsetLayout" stretch="0,1,0,1">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_17">
|
<widget class="QLabel" name="textureOffsetXLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>X:</string>
|
<string>X:</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -965,7 +965,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_18">
|
<widget class="QLabel" name="textureOffsetYLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Y:</string>
|
<string>Y:</string>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
@ -214,6 +214,9 @@ void SettingsDialog::addWidget(QWidget* widget, QString title, QString icon, QSt
|
||||||
|
|
||||||
void SettingsDialog::registerWidgetHelp(QObject* object, QString title, QString recommended_value, QString text)
|
void SettingsDialog::registerWidgetHelp(QObject* object, QString title, QString recommended_value, QString text)
|
||||||
{
|
{
|
||||||
|
if (!object)
|
||||||
|
return;
|
||||||
|
|
||||||
// construct rich text with formatted description
|
// construct rich text with formatted description
|
||||||
QString full_text;
|
QString full_text;
|
||||||
full_text += "<table width='100%' cellpadding='0' cellspacing='0'><tr><td><strong>";
|
full_text += "<table width='100%' cellpadding='0' cellspacing='0'><tr><td><strong>";
|
||||||
|
|
Loading…
Reference in New Issue