close button using connect method over ui file

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

View file

@ -163,11 +163,6 @@ void PictureDialog::playerNameUpdated()
} }
} }
void PictureDialog::on_cmdClose_clicked()
{
this->close();
}
void PictureDialog::exportSnapmaticPicture() void PictureDialog::exportSnapmaticPicture()
{ {
PictureExport::exportPicture(this, smpic); PictureExport::exportPicture(this, smpic);

View file

@ -42,7 +42,6 @@ public slots:
private slots: private slots:
void copySnapmaticPicture(); void copySnapmaticPicture();
void exportSnapmaticPicture(); void exportSnapmaticPicture();
void on_cmdClose_clicked();
void on_labPicture_mouseDoubleClicked(); void on_labPicture_mouseDoubleClicked();
private: private:

View file

@ -154,5 +154,22 @@
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<resources/> <resources/>
<connections/> <connections>
<connection>
<sender>cmdClose</sender>
<signal>clicked()</signal>
<receiver>PictureDialog</receiver>
<slot>close()</slot>
<hints>
<hint type="sourcelabel">
<x>912</x>
<y>514</y>
</hint>
<hint type="destinationlabel">
<x>479</x>
<y>267</y>
</hint>
</hints>
</connection>
</connections>
</ui> </ui>