mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 14:56:41 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			385 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			385 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#include "helpviewer.hpp"
 | 
						|
 | 
						|
#include <QDesktopServices>
 | 
						|
#include <QString>
 | 
						|
#include <QUrl>
 | 
						|
 | 
						|
#include <components/version/version.hpp>
 | 
						|
 | 
						|
void Misc::HelpViewer::openHelp(const char* url)
 | 
						|
{
 | 
						|
    std::string_view docsUrl = Version::getDocumentationUrl();
 | 
						|
    QString link = QString::fromUtf8(docsUrl.data(), docsUrl.size());
 | 
						|
    link.append(url);
 | 
						|
    QDesktopServices::openUrl(QUrl(link));
 | 
						|
}
 |