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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user