| 
									
										
										
										
											2014-09-14 15:03:07 -04:00
										 |  |  | // Copyright 2014 Dolphin Emulator Project
 | 
					
						
							| 
									
										
										
										
											2015-05-18 01:08:10 +02:00
										 |  |  | // Licensed under GPLv2+
 | 
					
						
							| 
									
										
										
										
											2014-09-14 15:03:07 -04:00
										 |  |  | // Refer to the license.txt file included.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <QDesktopServices>
 | 
					
						
							|  |  |  | #include <QUrl>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "ui_AboutDialog.h"
 | 
					
						
							| 
									
										
										
										
											2014-10-25 09:21:05 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-09-14 17:44:07 -07:00
										 |  |  | #include "Common/Common.h"
 | 
					
						
							|  |  |  | #include "Common/StdMakeUnique.h"
 | 
					
						
							| 
									
										
										
										
											2014-09-14 15:03:07 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-10-25 09:21:05 -04:00
										 |  |  | #include "DolphinQt/AboutDialog.h"
 | 
					
						
							|  |  |  | #include "DolphinQt/Utils/Utils.h"
 | 
					
						
							| 
									
										
										
										
											2014-09-14 15:03:07 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-10-25 09:21:05 -04:00
										 |  |  | DAboutDialog::DAboutDialog(QWidget* parent_widget) | 
					
						
							|  |  |  | 	: QDialog(parent_widget) | 
					
						
							| 
									
										
										
										
											2014-09-14 15:03:07 -04:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2014-10-25 09:21:05 -04:00
										 |  |  | 	setWindowModality(Qt::WindowModal); | 
					
						
							|  |  |  | 	setAttribute(Qt::WA_DeleteOnClose); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	m_ui = std::make_unique<Ui::DAboutDialog>(); | 
					
						
							|  |  |  | 	m_ui->setupUi(this); | 
					
						
							|  |  |  | 	m_ui->label->setText(m_ui->label->text().arg(SC(scm_desc_str), | 
					
						
							|  |  |  | 	    SL("2014"), SC(scm_branch_str), SC(scm_rev_git_str), | 
					
						
							|  |  |  | 	    SL(__DATE__), SL(__TIME__))); | 
					
						
							| 
									
										
										
										
											2014-09-14 15:03:07 -04:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-10-25 09:21:05 -04:00
										 |  |  | DAboutDialog::~DAboutDialog() | 
					
						
							| 
									
										
										
										
											2014-09-14 15:03:07 -04:00
										 |  |  | { | 
					
						
							|  |  |  | } |