forked from qt-creator/qt-creator
Git: Do the right thing when commiting
Do the right thing when commiting in git. This allows staged files to be commited without additional changes, etc. Change-Id: Ib04c91cf9c105c4a2bbe013926112d6d5d3bade6 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -46,8 +46,8 @@ public:
|
||||
explicit SubmitFileModel(QObject *parent = 0);
|
||||
|
||||
// Convenience to create and add rows containing a file plus status text.
|
||||
static QList<QStandardItem *> createFileRow(const QString &fileName, const QString &status = QString(), bool checked = true);
|
||||
QList<QStandardItem *> addFile(const QString &fileName, const QString &status = QString(), bool checked = true);
|
||||
QList<QStandardItem *> addFile(const QString &fileName, const QString &status = QString(),
|
||||
bool checked = true, 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;
|
||||
@@ -58,6 +58,7 @@ public:
|
||||
QString state(int row) const;
|
||||
QString file(int row) const;
|
||||
bool checked(int row) const;
|
||||
QVariant data(int row) const;
|
||||
|
||||
bool hasCheckedFiles() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user