close button using connect method over ui file

This commit is contained in:
Rafael 2016-04-10 17:09:35 +02:00
parent 707b680741
commit 2cd560d7e3
3 changed files with 18 additions and 7 deletions

View file

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

View file

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

View file

@ -110,5 +110,22 @@
</layout> </layout>
</widget> </widget>
<resources/> <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> </ui>