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()
{
PictureExport::exportPicture(this, smpic);

View File

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

View File

@ -154,5 +154,22 @@
</customwidget>
</customwidgets>
<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>