MCPcopy Create free account
hub / github.com/KDE/labplot / getRelFilePath

Function getRelFilePath

src/3rdparty/QXlsx/source/xlsxutility.cpp:41–57  ·  view source on GitHub ↗

* Return the .rel file path based on filePath */

Source from the content-addressed store, hash-verified

39 * Return the .rel file path based on filePath
40 */
41QString getRelFilePath(const QString &filePath)
42{
43 QString ret;
44
45 int idx = filePath.lastIndexOf(QLatin1Char('/'));
46 if (idx == -1) // not found
47 {
48 // return QString();
49
50 // dev34
51 ret = QLatin1String("_rels/") + QStringLiteral("%0.rels").arg(filePath);
52 return ret;
53 }
54
55 ret = QString( filePath.left(idx) + QLatin1String("/_rels/") + filePath.mid(idx+1) + QLatin1String(".rels"));
56 return ret;
57}
58
59double datetimeToNumber(const QDateTime &dt, bool is1904)
60{

Callers 1

loadPackageMethod · 0.85

Calls 2

argMethod · 0.80
QStringClass · 0.50

Tested by

no test coverage detected