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>
This commit is contained in:
Orgad Shaneh
2013-07-19 15:28:26 +03:00
committed by Orgad Shaneh
parent 8f05239b92
commit 39755c09b9
2 changed files with 16 additions and 7 deletions

View File

@@ -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;