Commit a5720ca8 authored by Andre Hartmann's avatar Andre Hartmann Committed by André Hartmann

SVN: Add constants for file change state

Change-Id: Ie65a9b8f614856d3877d094910221d0150c26c49
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 399b9396
......@@ -29,6 +29,11 @@
#include <vcsbase/submiteditorwidget.h>
#include <vcsbase/submitfilemodel.h>
static const char FileAddedC[] = "A";
static const char FileConflictedC[] = "C";
static const char FileDeletedC[] = "D";
static const char FileModifiedC[] = "M";
using namespace Subversion::Internal;
SubversionSubmitEditor::SubversionSubmitEditor(const VcsBase::VcsBaseSubmitEditorParameters *parameters) :
......@@ -48,13 +53,13 @@ void SubversionSubmitEditor::setStatusList(const QList<StatusFilePair> &statusOu
model->setFileStatusQualifier([](const QString &status, const QVariant &)
-> VcsBase::SubmitFileModel::FileStatusHint
{
if (status == QLatin1String("C"))
if (status == FileConflictedC)
return VcsBase::SubmitFileModel::FileUnmerged;
if (status == QLatin1String("A"))
if (status == FileAddedC)
return VcsBase::SubmitFileModel::FileAdded;
if (status == QLatin1String("M"))
if (status == FileModifiedC)
return VcsBase::SubmitFileModel::FileModified;
if (status == QLatin1String("D"))
if (status == FileDeletedC)
return VcsBase::SubmitFileModel::FileDeleted;
return VcsBase::SubmitFileModel::FileStatusUnknown;
} );
......
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