close button using connect method over ui file

1.3.x
Rafael 7 years ago
parent 707b680741
commit 2cd560d7e3

@ -32,8 +32,3 @@ AboutDialog::~AboutDialog()
{
delete ui;
}
void AboutDialog::on_cmdClose_clicked()
{
this->close();
}

@ -34,7 +34,6 @@ public:
~AboutDialog();
private slots:
void on_cmdClose_clicked();
private:
Ui::AboutDialog *ui;

@ -110,5 +110,22 @@
</layout>
</widget>
<resources/>
<connections/>
<connections>
<connection>
<sender>cmdClose</sender>
<signal>clicked()</signal>
<receiver>AboutDialog</receiver>
<slot>close()</slot>
<hints>
<hint type="sourcelabel">
<x>327</x>
<y>228</y>
</hint>
<hint type="destinationlabel">
<x>187</x>
<y>124</y>
</hint>
</hints>
</connection>
</connections>
</ui>

Loading…
Cancel
Save