void CVSSubmitEditor::setStateList(const QList<StateFilePair> &statusOutput) { typedef QList<StateFilePair>::const_iterator ConstIterator; VCSBase::SubmitFileModel *model = new VCSBase::SubmitFileModel(this); const ConstIterator cend = statusOutput.constEnd(); for (ConstIterator it = statusOutput.constBegin(); it != cend; ++it) model->addFile(it->second, stateName(it->first), true); setFileModel(model); }
void SubversionSubmitEditor::setStatusList(const QList<StatusFilePair> &statusOutput) { typedef QList<StatusFilePair>::const_iterator ConstIterator; VcsBase::SubmitFileModel *model = new VcsBase::SubmitFileModel(this); const ConstIterator cend = statusOutput.constEnd(); for (ConstIterator it = statusOutput.constBegin(); it != cend; ++it) model->addFile(it->second, it->first); // Hack to allow completion in "description" field : completion needs a root repository, the // checkScriptWorkingDirectory property is fine (at this point it was set by SubversionPlugin) setFileModel(model, this->checkScriptWorkingDirectory()); }
void ClearCaseSubmitEditor::setStatusList(const QStringList &statusOutput) { typedef QStringList::const_iterator ConstIterator; VcsBase::SubmitFileModel *model = new VcsBase::SubmitFileModel(this); const ConstIterator cend = statusOutput.constEnd(); for (ConstIterator it = statusOutput.constBegin(); it != cend; ++it) model->addFile(*it, QLatin1String("C")); setFileModel(model, checkScriptWorkingDirectory()); if (statusOutput.count() > 1) submitEditorWidget()->addKeep(); }