shared: common: Add versionText() function
This commit is contained in:
parent
15615776d3
commit
f14e2e77cd
@ -201,3 +201,9 @@ bool Common::isTextFile(QFileInfo fileInfo)
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString Common::versionText()
|
||||||
|
{
|
||||||
|
QString commitid = GIT_COMMIT_ID;
|
||||||
|
return commitid + " built " + __DATE__ + " " + __TIME__;
|
||||||
|
}
|
||||||
|
@ -13,5 +13,6 @@ bool initSqliteDatabase(QString path);
|
|||||||
void ensureConfigured();
|
void ensureConfigured();
|
||||||
QStringList excludedPaths();
|
QStringList excludedPaths();
|
||||||
bool isTextFile(QFileInfo fileInfo);
|
bool isTextFile(QFileInfo fileInfo);
|
||||||
|
QString versionText();
|
||||||
} // namespace Common
|
} // namespace Common
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user