close button using connect method over ui file
This commit is contained in:
		
							parent
							
								
									707b680741
								
							
						
					
					
						commit
						2cd560d7e3
					
				
					 3 changed files with 18 additions and 7 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue