forked from qt-creator/qt-creator
Git: Improve LogChangeWidget
* Enable display of local-only commits * Enable specifying a top commit Change-Id: I0688ba9ac670f709d2044ae2b7bff081fd86c860 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
8695fe6d7c
commit
aa5b049561
@@ -52,12 +52,13 @@ class LogChangeWidget : public QTreeView
|
||||
|
||||
public:
|
||||
explicit LogChangeWidget(QWidget *parent = 0);
|
||||
bool init(const QString &repository);
|
||||
bool init(const QString &repository, const QString &commit = QString(),
|
||||
bool includeRemote = true);
|
||||
QString commit() const;
|
||||
int commitIndex() const;
|
||||
|
||||
private:
|
||||
bool populateLog(const QString &repository);
|
||||
bool populateLog(const QString &repository, const QString &commit, bool includeRemote);
|
||||
const QStandardItem *currentItem(int column = 0) const;
|
||||
|
||||
QStandardItemModel *m_model;
|
||||
@@ -69,7 +70,8 @@ class LogChangeDialog : public QDialog
|
||||
public:
|
||||
LogChangeDialog(bool isReset, QWidget *parent = 0);
|
||||
|
||||
bool runDialog(const QString &repository);
|
||||
bool runDialog(const QString &repository, const QString &commit = QString(),
|
||||
bool includeRemote = true);
|
||||
|
||||
QString commit() const;
|
||||
int commitIndex() const;
|
||||
|
||||
Reference in New Issue
Block a user