shared: common: Add versionText() function

Tá an tiomantas seo le fáil i:
Albert S. 2022-05-31 18:40:40 +02:00
tuismitheoir 15615776d3
tiomantas f14e2e77cd
D'athraigh 2 comhad le 7 breiseanna agus 0 scriosta

Féach ar an gComhad

@ -201,3 +201,9 @@ bool Common::isTextFile(QFileInfo fileInfo)
}
return false;
}
QString Common::versionText()
{
QString commitid = GIT_COMMIT_ID;
return commitid + " built " + __DATE__ + " " + __TIME__;
}

Féach ar an gComhad

@ -13,5 +13,6 @@ bool initSqliteDatabase(QString path);
void ensureConfigured();
QStringList excludedPaths();
bool isTextFile(QFileInfo fileInfo);
QString versionText();
} // namespace Common
#endif