mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
refs #618, allow to set file name for saving in views
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user