1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00

Move redirect signals into header

This commit is contained in:
Elias Steurer 2019-10-28 18:24:21 +01:00
parent 30017db8d5
commit 0a9452c717
2 changed files with 15 additions and 19 deletions

View File

@ -131,22 +131,7 @@ bool Util::writeJsonObjectToFile(const QString& absoluteFilePath, const QJsonObj
out << QJsonDocument(object).toJson();
configTmp.close();
return true;
}
void Util::setNavigation(QString nav)
{
emit requestNavigation(nav);
}
void Util::setNavigationActive(bool isActive)
{
emit requestNavigationActive(isActive);
}
void Util::setToggleWallpaperConfiguration()
{
emit requestToggleWallpaperConfiguration();
return true;
}
QString Util::fixWindowsPath(QString url)

View File

@ -86,10 +86,21 @@ public slots:
static QString generateRandomString(quint32 length = 32);
void setNavigation(QString nav);
void setNavigationActive(bool isActive);
void setNavigation(QString nav)
{
emit requestNavigation(nav);
}
void setToggleWallpaperConfiguration();
// When we create a wallpaper the main navigation gets disabled
void setNavigationActive(bool isActive)
{
emit requestNavigationActive(isActive);
}
void setToggleWallpaperConfiguration()
{
emit requestToggleWallpaperConfiguration();
}
void openFolderInExplorer(QString url);
void requestAllLicenses();