Mercurial > hg > octave-lyh
diff libgui/src/settings-dialog.ui @ 15274:c5d09a57ceb2
provide buttons for the settings dialog (bug #36981)
* settings-dialog.ui: Add Ok and Cancel buttons.
* settings-dialog.h, settings-dialog.cc
(settings_dialog::write_changed_settings): New method.
* main-window.cc: Call it.
author | Torsten <ttl@justmail.de> |
---|---|
date | Sun, 02 Sep 2012 22:39:56 +0200 |
parents | 017f0b2e6933 |
children | 842ab161c10a |
line wrap: on
line diff
--- a/libgui/src/settings-dialog.ui +++ b/libgui/src/settings-dialog.ui @@ -487,6 +487,13 @@ </widget> </widget> </item> + <item> + <widget class="QDialogButtonBox" name="buttonBox"> + <property name="standardButtons"> + <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> + </property> + </widget> + </item> </layout> </widget> <resources/> @@ -715,5 +722,37 @@ </hint> </hints> </connection> + <connection> + <sender>buttonBox</sender> + <signal>accepted()</signal> + <receiver>settings_dialog</receiver> + <slot>accept()</slot> + <hints> + <hint type="sourcelabel"> + <x>299</x> + <y>366</y> + </hint> + <hint type="destinationlabel"> + <x>299</x> + <y>199</y> + </hint> + </hints> + </connection> + <connection> + <sender>buttonBox</sender> + <signal>rejected()</signal> + <receiver>settings_dialog</receiver> + <slot>reject()</slot> + <hints> + <hint type="sourcelabel"> + <x>299</x> + <y>366</y> + </hint> + <hint type="destinationlabel"> + <x>299</x> + <y>199</y> + </hint> + </hints> + </connection> </connections> </ui>