Move QDialogButtonBox signal/slot connect from UI file to class

This commit is contained in:
Jonas Kvinge
2020-07-18 04:17:27 +02:00
parent 978f3a3682
commit 6154ae7342
2 changed files with 2 additions and 16 deletions

View File

@@ -172,6 +172,8 @@ SettingsDialog::SettingsDialog(Application *app, QMainWindow *mainwindow, QWidge
ui_->buttonBox->button(QDialogButtonBox::Cancel)->setShortcut(QKeySequence::Close);
connect(ui_->buttonBox, SIGNAL(clicked(QAbstractButton*)), this, SLOT(DialogButtonClicked(QAbstractButton*)));
}
SettingsDialog::~SettingsDialog() {

View File

@@ -132,21 +132,5 @@
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>clicked(QAbstractButton*)</signal>
<receiver>SettingsDialog</receiver>
<slot>DialogButtonClicked(QAbstractButton*)</slot>
<hints>
<hint type="sourcelabel">
<x>20</x>
<y>20</y>
</hint>
<hint type="destinationlabel">
<x>20</x>
<y>20</y>
</hint>
</hints>
</connection>
</connections>
</ui>