void CodeModel::removeFile(FileModelItem item) { QHash<QString, FileModelItem>::Iterator it = _M_files.find(item->name()); if (it != _M_files.end() && it.value() == item) _M_files.erase(it); }
void CodeModel::addFile(FileModelItem item) { _M_creation_id = 0; // reset the creation id _M_files.insert(item->name(), item); }