MCPcopy Create free account
hub / github.com/KDE/krita / load

Method load

libs/resources/KisFolderStorage.cpp:54–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52private:
53
54 bool load(KisTagSP tag) const
55 {
56 QFile f(m_dirIterator->filePath());
57 tag->setFilename(m_dirIterator->fileName());
58 if (f.open(QFile::ReadOnly)) {
59 if (!tag->load(f)) {
60 qWarning() << m_dirIterator->filePath() << "is not a valid tag desktop file";
61 return false;
62 }
63
64 }
65 return true;
66 }
67
68 QScopedPointer<QDirIterator> m_dirIterator;
69 QString m_location;

Callers

nothing calls this directly

Calls 4

filePathMethod · 0.80
setFilenameMethod · 0.45
fileNameMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected