Qt: Fix border overlay export button
This commit is contained in:
parent
d395be07ee
commit
b08ab9f712
|
@ -161,7 +161,7 @@
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0" colspan="2">
|
<item row="3" column="0" colspan="2">
|
||||||
<layout class="QGridLayout" name="gridLayout" columnstretch="1,1">
|
<layout class="QGridLayout" name="customConfigOptionsLayout" columnstretch="1,1">
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QCheckBox" name="destinationAlphaBlend">
|
<widget class="QCheckBox" name="destinationAlphaBlend">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -177,9 +177,9 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
<layout class="QHBoxLayout" name="exportCustomConfigLayout">
|
||||||
<item>
|
<item>
|
||||||
<spacer name="horizontalSpacer">
|
<spacer name="exportSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Orientation::Horizontal</enum>
|
<enum>Qt::Orientation::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
@ -530,6 +530,18 @@ PostProcessingOverlayConfigWidget::PostProcessingOverlayConfigWidget(SettingsWin
|
||||||
connect(m_ui.destinationAlphaBlend, &QCheckBox::checkStateChanged, this,
|
connect(m_ui.destinationAlphaBlend, &QCheckBox::checkStateChanged, this,
|
||||||
&PostProcessingOverlayConfigWidget::triggerSettingsReload);
|
&PostProcessingOverlayConfigWidget::triggerSettingsReload);
|
||||||
|
|
||||||
|
if (!m_dialog->isPerGameSettings())
|
||||||
|
{
|
||||||
|
connect(m_ui.exportCustomConfig, &QPushButton::clicked, this,
|
||||||
|
&PostProcessingOverlayConfigWidget::onExportCustomConfigClicked);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_ui.exportCustomConfigLayout->removeWidget(m_ui.exportCustomConfig);
|
||||||
|
delete m_ui.exportCustomConfig;
|
||||||
|
m_ui.exportCustomConfig = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
onOverlayNameCurrentIndexChanged(m_ui.overlayName->currentIndex());
|
onOverlayNameCurrentIndexChanged(m_ui.overlayName->currentIndex());
|
||||||
|
|
||||||
dialog->registerWidgetHelp(m_ui.imagePath, tr("Image Path"), tr("Unspecified"),
|
dialog->registerWidgetHelp(m_ui.imagePath, tr("Image Path"), tr("Unspecified"),
|
||||||
|
@ -590,7 +602,8 @@ void PostProcessingOverlayConfigWidget::onExportCustomConfigClicked()
|
||||||
"displayEndY: %5\n"
|
"displayEndY: %5\n"
|
||||||
"alphaBlend: %6\n"
|
"alphaBlend: %6\n"
|
||||||
"destinationAlphaBlend: %7\n")
|
"destinationAlphaBlend: %7\n")
|
||||||
.arg(QFileInfo(m_ui.imagePath->text()).fileName(), m_ui.displayStartX->value())
|
.arg(QFileInfo(m_ui.imagePath->text()).fileName())
|
||||||
|
.arg(m_ui.displayStartX->value())
|
||||||
.arg(m_ui.displayStartY->value())
|
.arg(m_ui.displayStartY->value())
|
||||||
.arg(m_ui.displayEndX->value())
|
.arg(m_ui.displayEndX->value())
|
||||||
.arg(m_ui.displayEndY->value())
|
.arg(m_ui.displayEndY->value())
|
||||||
|
|
Loading…
Reference in New Issue