close button using connect method over ui file
This commit is contained in:
		
							parent
							
								
									1bdff25053
								
							
						
					
					
						commit
						707b680741
					
				
					 3 changed files with 18 additions and 7 deletions
				
			
		|  | @ -163,11 +163,6 @@ void PictureDialog::playerNameUpdated() | |||
|     } | ||||
| } | ||||
| 
 | ||||
| void PictureDialog::on_cmdClose_clicked() | ||||
| { | ||||
|     this->close(); | ||||
| } | ||||
| 
 | ||||
| void PictureDialog::exportSnapmaticPicture() | ||||
| { | ||||
|     PictureExport::exportPicture(this, smpic); | ||||
|  |  | |||
|  | @ -42,7 +42,6 @@ public slots: | |||
| private slots: | ||||
|     void copySnapmaticPicture(); | ||||
|     void exportSnapmaticPicture(); | ||||
|     void on_cmdClose_clicked(); | ||||
|     void on_labPicture_mouseDoubleClicked(); | ||||
| 
 | ||||
| private: | ||||
|  |  | |||
|  | @ -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> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue