Init commit

This commit is contained in:
semenov
2024-08-14 10:02:09 +03:00
commit d763a35353
41 changed files with 2051 additions and 0 deletions

38
Core/tools.cpp Normal file
View File

@@ -0,0 +1,38 @@
#include "tools.h"
#include <qdir.h>
void Tools::PrintTime()
{
qDebug() << QTime::currentTime().toString("hh:mm:ss");
}
QString Tools::GetTime()
{
return QTime::currentTime().toString(("hh:mm:ss"));
}
QString Tools::CreateLocalPath(QString path)
{
qDebug() << "Full path: " << path;
qint8 pos = path.indexOf("Application");
QString localPath = path.remove(0,--pos);
qDebug() << "Local path: " << localPath;
return localPath;
}
QString Tools::CreateFullPath(QString path)
{
QString fullPath;
qint8 pos = path.indexOf("Application");
QString localPath = path.remove(0,--pos);
qDebug() << "CLIENT: localPath" << localPath;
fullPath = QDir::currentPath() + localPath;
return fullPath;
}