diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2013-07-19 15:28:26 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2013-07-22 12:38:54 +0200 |
commit | 39755c09b9cf03e64723ffcbef100c0d52fffb7c (patch) | |
tree | 9a4b39dac3e81dd63b70556b207ba565ef9b2f2c /src/plugins/git/branchmodel.h | |
parent | 8f05239b924327b45d1e39960732403cae91a25b (diff) | |
download | qt-creator-39755c09b9cf03e64723ffcbef100c0d52fffb7c.tar.gz |
Git: Only show Tags root node when tags are enabled and exist
Create it on demand. Remove on clear
Change-Id: Ic29e82a859f99b5d739c25be83aa6c40a1ee2cc8
Reviewed-by: Nikita Baryshnikov <nib952051@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/git/branchmodel.h')
-rw-r--r-- | src/plugins/git/branchmodel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/git/branchmodel.h b/src/plugins/git/branchmodel.h index 896d8ffabc..f110944105 100644 --- a/src/plugins/git/branchmodel.h +++ b/src/plugins/git/branchmodel.h @@ -73,6 +73,7 @@ public: QString fullName(const QModelIndex &idx, bool includePrefix = false) const; QStringList localBranchNames() const; QString sha(const QModelIndex &idx) const; + bool hasTags() const; bool isLocal(const QModelIndex &idx) const; bool isLeaf(const QModelIndex &idx) const; bool isTag(const QModelIndex &idx) const; |