mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Citra-qt: Add multiplayer ui
This commit is contained in:
		
							parent
							
								
									bba2a60b22
								
							
						
					
					
						commit
						871196bc10
					
				
					 34 changed files with 2653 additions and 46 deletions
				
			
		
							
								
								
									
										13
									
								
								src/citra_qt/util/clickable_label.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								src/citra_qt/util/clickable_label.cpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | |||
| // Copyright 2017 Citra Emulator Project
 | ||||
| // Licensed under GPLv2 or any later version
 | ||||
| // Refer to the license.txt file included.
 | ||||
| 
 | ||||
| #include "citra_qt/util/clickable_label.h" | ||||
| 
 | ||||
| ClickableLabel::ClickableLabel(QWidget* parent, Qt::WindowFlags f) : QLabel(parent) {} | ||||
| 
 | ||||
| ClickableLabel::~ClickableLabel() {} | ||||
| 
 | ||||
| void ClickableLabel::mouseReleaseEvent(QMouseEvent* event) { | ||||
|     emit clicked(); | ||||
| } | ||||
							
								
								
									
										23
									
								
								src/citra_qt/util/clickable_label.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								src/citra_qt/util/clickable_label.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,23 @@ | |||
| // Copyright 2017 Citra Emulator Project
 | ||||
| // Licensed under GPLv2 or any later version
 | ||||
| // Refer to the license.txt file included.
 | ||||
| 
 | ||||
| #pragma once | ||||
| 
 | ||||
| #include <QLabel> | ||||
| #include <QWidget> | ||||
| #include <Qt> | ||||
| 
 | ||||
| class ClickableLabel : public QLabel { | ||||
|     Q_OBJECT | ||||
| 
 | ||||
| public: | ||||
|     explicit ClickableLabel(QWidget* parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags()); | ||||
|     ~ClickableLabel(); | ||||
| 
 | ||||
| signals: | ||||
|     void clicked(); | ||||
| 
 | ||||
| protected: | ||||
|     void mouseReleaseEvent(QMouseEvent* event); | ||||
| }; | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue