: ui(new Ui::AboutDialog)
{
ui->setupUi(this);
+
+ connect(ui->button_box, &QDialogButtonBox::accepted, [this]{ this->close(); });
}
</widget>
</item>
<item>
- <widget class="QDialogButtonBox" name="buttonBox">
+ <widget class="QDialogButtonBox" name="button_box">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<resources/>
<connections>
<connection>
- <sender>buttonBox</sender>
+ <sender>button_box</sender>
<signal>accepted()</signal>
<receiver>Dialog</receiver>
<slot>accept()</slot>
</hints>
</connection>
<connection>
- <sender>buttonBox</sender>
+ <sender>button_box</sender>
<signal>rejected()</signal>
<receiver>Dialog</receiver>
<slot>reject()</slot>