forked from qt-creator/qt-creator
Git: Double click on branch shows log
...instead of allowing to rename inline. Renaming can still be done with the context menu. Inspecting the log is a more common operation. Change-Id: Idb3fb8fe01b6a5ae57a2eba09b27a36f677e566a Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
committed by
Orgad Shaneh
parent
d982c362c1
commit
8b93eee3b1
@@ -319,10 +319,7 @@ Qt::ItemFlags BranchModel::flags(const QModelIndex &index) const
|
||||
BranchNode *node = indexToNode(index);
|
||||
if (!node)
|
||||
return Qt::NoItemFlags;
|
||||
if (index.column() == 0 && node->isLeaf() && node->isLocal())
|
||||
return Qt::ItemIsSelectable | Qt::ItemIsEditable | Qt::ItemIsEnabled;
|
||||
else
|
||||
return Qt::ItemIsSelectable | Qt::ItemIsEnabled;
|
||||
return Qt::ItemIsSelectable | Qt::ItemIsEnabled;
|
||||
}
|
||||
|
||||
void BranchModel::clear()
|
||||
|
||||
Reference in New Issue
Block a user