Add a close button to the CSimulatorEmulatedConfig window

This commit is contained in:
Mat Sutcliffe
2021-08-21 18:08:51 +01:00
parent dd3fc42c94
commit c88f9d21c6
2 changed files with 11 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ namespace BlackSimPlugin
{
ui->setupUi(this);
CGuiUtility::disableMinMaxCloseButtons(this);
connect(ui->bb_Close, &QDialogButtonBox::rejected, this, &CSimulatorEmulatedConfigWidget::close);
}
CSimulatorEmulatedConfigWidget::~CSimulatorEmulatedConfigWidget()

View File

@@ -30,6 +30,16 @@
</property>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="bb_Close">
<property name="standardButtons">
<set>QDialogButtonBox::Close</set>
</property>
<property name="centerButtons">
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>