forked from qt-creator/qt-creator
Git: Prevent checking unmerged files in submit editor
Change-Id: Ic226638a522ca92f61b8b6736a325c1cc747ff62 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -36,6 +36,13 @@
|
||||
|
||||
namespace VcsBase {
|
||||
|
||||
enum CheckMode
|
||||
{
|
||||
Unchecked,
|
||||
Checked,
|
||||
Uncheckable
|
||||
};
|
||||
|
||||
class VCSBASE_EXPORT SubmitFileModel : public QStandardItemModel
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -44,7 +51,7 @@ public:
|
||||
|
||||
// Convenience to create and add rows containing a file plus status text.
|
||||
QList<QStandardItem *> addFile(const QString &fileName, const QString &status = QString(),
|
||||
bool checked = true, const QVariant &data = QVariant());
|
||||
CheckMode checkMode = Checked, const QVariant &data = QVariant());
|
||||
|
||||
// Find convenience that returns the whole row (as opposed to QStandardItemModel::find).
|
||||
QList<QStandardItem *> findRow(const QString &text, int column = 0) const;
|
||||
|
||||
Reference in New Issue
Block a user