MCPcopy Create free account
hub / github.com/Kitware/ParaView / GetSwapFilename

Function GetSwapFilename

Qt/Python/pqPythonFileIO.cxx:46–56  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

44
45//-----------------------------------------------------------------------------
46QString GetSwapFilename(const QString& filepath)
47{
48 const QString swapFolder = GetSwapDir();
49 if (!swapFolder.isEmpty())
50 {
51 return swapFolder + "/" + QFileInfo(filepath).fileName() + "." +
52 QString::number(qHash(filepath));
53 }
54
55 return QString();
56}
57
58//-----------------------------------------------------------------------------
59//-----------------------------------------------------------------------------

Callers 3

readFromFileMethod · 0.85
startMethod · 0.85
removeSwapMethod · 0.85

Calls 5

GetSwapDirFunction · 0.85
QFileInfoClass · 0.85
qHashFunction · 0.50
QStringClass · 0.50
isEmptyMethod · 0.45

Tested by

no test coverage detected