Git commit 6d7436897c4f3fa2c48a0a083a778a22c098109f by Johannes Obermayr. Committed on 11/01/2016 at 23:58. Pushed by jobermayr into branch 'kf5'. Fix buttons in OptionDialog. M +5 -3 src/option/k3boptiondialog.cpp http://commits.kde.org/k3b/6d7436897c4f3fa2c48a0a083a778a22c098109f diff --git a/src/option/k3boptiondialog.cpp b/src/option/k3boptiondialog.cpp index dd4148c..8a04a8b 100644 --- a/src/option/k3boptiondialog.cpp +++ b/src/option/k3boptiondialog.cpp @@ -48,6 +48,8 @@ K3b::OptionDialog::OptionDialog(QWidget *parent ) setFaceType( List ); setWindowTitle( i18n("Settings") ); = + this->setStandardButtons( QDialogButtonBox::Ok | QDialogButtonBox::Res= toreDefaults | QDialogButtonBox::Apply ); + setupMiscPage(); setupDevicePage(); setupProgramsPage(); @@ -68,9 +70,9 @@ K3b::OptionDialog::OptionDialog(QWidget *parent ) // because of the label in the device-tab resize( 700, 500 ); = - connect( this, SIGNAL(okClicked()), SLOT(slotOk()) ); - connect( this, SIGNAL(defaultClicked()), SLOT(slotDefault()) ); - connect( this, SIGNAL(applyClicked()), SLOT(slotApply()) ); + connect( this->buttonBox()->button( QDialogButtonBox::Ok ), SIGNAL(cli= cked()), SLOT(slotOk()) ); + connect( this->buttonBox()->button( QDialogButtonBox::RestoreDefaults = ), SIGNAL(clicked()), SLOT(slotDefault()) ); + connect( this->buttonBox()->button( QDialogButtonBox::Apply ), SIGNAL(= clicked()), SLOT(slotApply()) ); } = =