MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / setOrigin

Method setOrigin

src/filetreeitem.cpp:134–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void FileTreeItem::setOrigin(int originID, const std::wstring& realPath, Flags flags,
135 const std::wstring& mod)
136{
137 m_originID = originID;
138 m_wsRealPath = realPath;
139 m_realPath = QString::fromStdWString(realPath);
140 m_flags = flags;
141 m_mod = QString::fromStdWString(mod);
142
143 m_fileSize.reset();
144 m_lastModified.reset();
145 m_fileType.reset();
146 m_compressedFileSize.reset();
147}
148
149void FileTreeItem::insert(FileTreeItem::Ptr child, std::size_t at)
150{

Callers 1

updateFileItemMethod · 0.80

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected