forked from qt-creator/qt-creator
Git: Use an enum for simple/amend commit
Change-Id: Ibea0a1f2826c67796a56414326fe6afdee654576 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
2b41210b3f
commit
7b851602cc
@@ -30,6 +30,8 @@
|
||||
#ifndef GITSUBMITEDITOR_H
|
||||
#define GITSUBMITEDITOR_H
|
||||
|
||||
#include "gitsettings.h" // CommitType
|
||||
|
||||
#include <vcsbase/vcsbasesubmiteditor.h>
|
||||
|
||||
#include <QStringList>
|
||||
@@ -52,7 +54,7 @@ public:
|
||||
explicit GitSubmitEditor(const VcsBase::VcsBaseSubmitEditorParameters *parameters, QWidget *parent);
|
||||
|
||||
void setCommitData(const CommitData &);
|
||||
void setAmend(bool amend);
|
||||
void setCommitType(CommitType commitType);
|
||||
GitSubmitEditorPanelData panelData() const;
|
||||
bool forceClose() const { return m_forceClose; }
|
||||
|
||||
@@ -72,7 +74,7 @@ private:
|
||||
|
||||
VcsBase::SubmitFileModel *m_model;
|
||||
QString m_commitEncoding;
|
||||
bool m_amend;
|
||||
CommitType m_commitType;
|
||||
bool m_forceClose;
|
||||
QString m_workingDirectory;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user