1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-22 18:52:30 +01:00

Fix missing toLocal function to fix drag and drop

This commit is contained in:
Elias Steurer 2021-05-08 09:13:01 +02:00
parent 802130d92c
commit 257d3988ca
3 changed files with 8 additions and 2 deletions

View File

@ -59,7 +59,7 @@ public:
/*!
\brief We need to check if there was an error in the Wallpaper/Widgets.
For this we ping it every 1s.
For this we ping it every 3s.
*/
static const int contentPingAliveIntervalMS = 3000;

View File

@ -70,7 +70,6 @@ bool Util::writeJsonObjectToFile(const QString& absoluteFilePath, const QJsonObj
return true;
}
/*!
\brief Opens a native folder window on the given path. Windows and Mac only for now!
*/
@ -96,6 +95,11 @@ void Util::openFolderInExplorer(const QString& url) const
explorer.startDetached();
}
QString Util::toLocal(const QString& url)
{
return ScreenPlayUtil::toLocal(url);
}
/*!
\brief Loads all content of the legal folder in the qrc into a property string of this class.
allLicenseLoaded is emited when loading is finished.

View File

@ -54,6 +54,7 @@
#include <qqml.h>
#include "globalvariables.h"
#include "ScreenPlayUtil/util.h"
#include <fstream>
#include <iostream>
@ -101,6 +102,7 @@ signals:
public slots:
void copyToClipboard(const QString& text) const;
void openFolderInExplorer(const QString& url) const;
QString toLocal(const QString& url);
void requestAllLicenses();
void requestDataProtection();