VCS: Refresh submit editor status when it might change

Including Git implementation

Task-number: QTCREATORBUG-5644

Change-Id: Ic5dede99d93b84e5d271292b4694216f51e66882
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2012-12-25 18:27:38 +02:00
parent 6c4c45ba0e
commit cecfffc7a3
7 changed files with 75 additions and 7 deletions

View File

@@ -117,6 +117,12 @@ bool SubmitFileModel::checked(int row) const
return (item(row)->checkState() == Qt::Checked);
}
void SubmitFileModel::setChecked(int row, bool check)
{
if (row >= 0 || row < rowCount())
item(row)->setCheckState(check ? Qt::Checked : Qt::Unchecked);
}
QVariant SubmitFileModel::extraData(int row) const
{
if (row < 0 || row >= rowCount())