mirror of https://github.com/mgba-emu/mgba.git
Qt: Add 'Apply' button to settings window (fixes #103)
This commit is contained in:
parent
04272ff807
commit
31d409c8b1
1
CHANGES
1
CHANGES
|
@ -20,6 +20,7 @@ Misc:
|
|||
- GBA Audio: Allow GBAAVStream to have no video callback
|
||||
- ARM7: Force disable LTO on two files to work around a GCC bug
|
||||
- Libretro: Use anonymous memory mappers for large blocks of memory
|
||||
- Qt: Add 'Apply' button to settings window
|
||||
|
||||
0.3.0: (2015-08-16)
|
||||
Features:
|
||||
|
|
|
@ -89,6 +89,11 @@ SettingsView::SettingsView(ConfigController* controller, QWidget* parent)
|
|||
|
||||
connect(m_ui.biosBrowse, SIGNAL(clicked()), this, SLOT(selectBios()));
|
||||
connect(m_ui.buttonBox, SIGNAL(accepted()), this, SLOT(updateConfig()));
|
||||
connect(m_ui.buttonBox, &QDialogButtonBox::clicked, [this](QAbstractButton* button) {
|
||||
if (m_ui.buttonBox->buttonRole(button) == QDialogButtonBox::ApplyRole) {
|
||||
updateConfig();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void SettingsView::selectBios() {
|
||||
|
|
|
@ -549,7 +549,7 @@
|
|||
<item>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
||||
<set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
Loading…
Reference in New Issue