Example #1
0
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);
}
Example #2
0
void CodeModel::addFile(FileModelItem item) {
    _M_creation_id = 0; // reset the creation id
    _M_files.insert(item->name(), item);
}