forked from qt-creator/qt-creator
Git: Enable renaming local branches by direct editing
Change-Id: I7edab94d949a6e48642f280af52fd156c803cafb Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
committed by
Orgad Shaneh
parent
1f1149bb58
commit
a82dd10518
@@ -126,6 +126,9 @@ BranchView::BranchView() :
|
||||
this, &BranchView::BranchView::setIncludeTags);
|
||||
|
||||
m_branchView->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
m_branchView->setEditTriggers(QAbstractItemView::SelectedClicked
|
||||
| QAbstractItemView::EditKeyPressed);
|
||||
m_branchView->setItemDelegate(new BranchValidationDelegate(this, m_model));
|
||||
connect(m_branchView, &QAbstractItemView::doubleClicked,
|
||||
this, [this](const QModelIndex &idx) { log(m_filterModel->mapToSource(idx)); });
|
||||
connect(m_branchView, &QWidget::customContextMenuRequested,
|
||||
|
||||
Reference in New Issue
Block a user