Commit 217636f5 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Prefix -/+ instead of postfix


Signed-off-by: Waqar Ahmed's avatarWaqar Ahmed <waqar.17a@gmail.com>
parent eba32ec6
......@@ -127,9 +127,9 @@ QVariant GitStatusModel::data(const QModelIndex &index, int role) const
int r = m_nodes[rootIndex].at(row).linesRemoved;
auto add = QString::number(a);
auto sub = QString::number(r);
add.append(QStringLiteral("+ ") + sub + QStringLiteral("- "));
add.append(QString(QLatin1Char(m_nodes[rootIndex].at(row).statusChar)));
return add;
QString statusChar(QLatin1Char(m_nodes[rootIndex].at(row).statusChar));
QString ret = QStringLiteral("+") + add + QStringLiteral(" -") + sub + QStringLiteral(" ") + statusChar;
return ret;
}
} else if (role == FileNameRole) {
return m_nodes[rootIndex].at(row).file;
......
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