Commit 833e815c authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Rename GitStatusModel::addItems to setStatusItems

We aren't adding anything, we are setting.
parent 23f32f52
......@@ -160,7 +160,7 @@ QVariant GitStatusModel::data(const QModelIndex &index, int role) const
return {};
}
void GitStatusModel::addItems(GitUtils::GitParsedStatus status, bool numStat)
void GitStatusModel::setStatusItems(GitUtils::GitParsedStatus status, bool numStat)
{
beginResetModel();
m_nodes[Staged] = std::move(status.staged);
......
......@@ -25,7 +25,7 @@ public:
int columnCount(const QModelIndex &parent) const override;
QVariant data(const QModelIndex &index, int role) const override;
void addItems(GitUtils::GitParsedStatus status, bool numStat);
void setStatusItems(GitUtils::GitParsedStatus status, bool numStat);
QVector<int> emptyRows();
const QVector<GitUtils::StatusItem> &untrackedFiles() const
......
......@@ -710,7 +710,7 @@ void GitWidget::parseStatusReady()
{
GitUtils::GitParsedStatus s = m_gitStatusWatcher.result();
m_model->addItems(std::move(s), m_pluginView->plugin()->showGitStatusWithNumStat());
m_model->setStatusItems(std::move(s), m_pluginView->plugin()->showGitStatusWithNumStat());
hideEmptyTreeNodes();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment