mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-22 18:52:30 +01:00
Remove unnecessary conversion
This commit is contained in:
parent
152fb1243c
commit
c94350b15c
@ -2,9 +2,9 @@
|
||||
|
||||
#include <QProcess>
|
||||
|
||||
QMLUtilities::QMLUtilities(QObject *parent) : QObject(parent)
|
||||
QMLUtilities::QMLUtilities(QObject* parent)
|
||||
: QObject(parent)
|
||||
{
|
||||
|
||||
}
|
||||
void QMLUtilities::setNavigation(QString nav)
|
||||
{
|
||||
@ -34,9 +34,9 @@ void QMLUtilities::openFolderInExplorer(QString url)
|
||||
void QMLUtilities::openLicenceFolder()
|
||||
{
|
||||
QProcess explorer;
|
||||
explorer.setProgram("explorer.exe");
|
||||
QStringList args;
|
||||
args.append(QDir::toNativeSeparators(QString(QDir::toNativeSeparators(QCoreApplication::applicationFilePath()) + "/ScreenPlay/legal")));
|
||||
args.append(QDir::toNativeSeparators(QCoreApplication::applicationDirPath()+ "/legal"));
|
||||
explorer.setProgram("explorer.exe");
|
||||
explorer.setArguments(args);
|
||||
explorer.startDetached();
|
||||
}
|
||||
|
@ -4,6 +4,7 @@
|
||||
#include <QString>
|
||||
#include <QDir>
|
||||
#include <QProcess>
|
||||
#include <QDebug>
|
||||
#include <QCoreApplication>
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user