Git: Enable renaming local branches by direct editing

Change-Id: I7edab94d949a6e48642f280af52fd156c803cafb
Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
Orgad Shaneh
2018-11-04 05:03:46 +02:00
committed by Orgad Shaneh
parent 1f1149bb58
commit a82dd10518
4 changed files with 37 additions and 1 deletions

View File

@@ -26,13 +26,26 @@
#pragma once
#include <QDialog>
#include <QItemDelegate>
namespace Git {
namespace Internal {
class BranchModel;
namespace Ui { class BranchAddDialog; }
class BranchValidationDelegate : public QItemDelegate
{
public:
BranchValidationDelegate(QWidget *parent, BranchModel *model);
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
const QModelIndex &index) const override;
private:
BranchModel *m_model;
};
class BranchAddDialog : public QDialog
{
Q_OBJECT