all repos — mgba @ 31d409c8b16d9676dd78681db43dc851c4e54000

mGBA Game Boy Advance Emulator

Qt: Add 'Apply' button to settings window (fixes #103)
Jeffrey Pfau jeffrey@endrift.com
Wed, 09 Sep 2015 01:44:31 -0700
commit

31d409c8b16d9676dd78681db43dc851c4e54000

parent

04272ff8072e331e27de8ef7ec26c145d6e1f0e3

3 files changed, 7 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -20,6 +20,7 @@ - GBA: Better memory handling with PNG savestates

- 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:
M src/platform/qt/SettingsView.cppsrc/platform/qt/SettingsView.cpp

@@ -89,6 +89,11 @@ #endif

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() {
M src/platform/qt/SettingsView.uisrc/platform/qt/SettingsView.ui

@@ -549,7 +549,7 @@ </item>

<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>