1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-18 16:32:33 +02:00

Remove unnecessary conversion

This commit is contained in:
kelteseth 2018-04-20 14:17:45 +02:00
parent 152fb1243c
commit c94350b15c
2 changed files with 5 additions and 4 deletions

View File

@ -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();
}

View File

@ -4,6 +4,7 @@
#include <QString>
#include <QDir>
#include <QProcess>
#include <QDebug>
#include <QCoreApplication>
/*!