mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 11:05:44 +08:00
Add a close button to the CSimulatorEmulatedConfig window
This commit is contained in:
@@ -21,6 +21,7 @@ namespace BlackSimPlugin
|
|||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
CGuiUtility::disableMinMaxCloseButtons(this);
|
CGuiUtility::disableMinMaxCloseButtons(this);
|
||||||
|
connect(ui->bb_Close, &QDialogButtonBox::rejected, this, &CSimulatorEmulatedConfigWidget::close);
|
||||||
}
|
}
|
||||||
|
|
||||||
CSimulatorEmulatedConfigWidget::~CSimulatorEmulatedConfigWidget()
|
CSimulatorEmulatedConfigWidget::~CSimulatorEmulatedConfigWidget()
|
||||||
|
|||||||
@@ -30,6 +30,16 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
|
|||||||
Reference in New Issue
Block a user