refs #618, allow to set file name for saving in views

This commit is contained in:
Klaus Basan
2016-03-23 03:09:27 +01:00
parent e993ecdeaa
commit 4cecd2a4d0
10 changed files with 91 additions and 24 deletions

View File

@@ -15,6 +15,18 @@
namespace BlackMisc
{
const QString &CFileUtils::jsonAppendix()
{
static const QString j(".json");
return j;
}
const QString &CFileUtils::jsonWildcardAppendix()
{
static const QString jw("*" + jsonAppendix());
return jw;
}
bool CFileUtils::writeStringToFile(const QString &content, const QString &fileNameAndPath)
{
if (fileNameAndPath.isEmpty()) { return false; }