forked from qt-creator/qt-creator
Git: added rename branch
Change-Id: I327a2bc91b871dc03797d9af52bb2d32be8e76d2 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -95,11 +95,12 @@ private:
|
||||
};
|
||||
|
||||
|
||||
BranchAddDialog::BranchAddDialog(QWidget *parent) :
|
||||
BranchAddDialog::BranchAddDialog(QWidget *parent, bool addBranch) :
|
||||
QDialog(parent),
|
||||
m_ui(new Ui::BranchAddDialog)
|
||||
{
|
||||
m_ui->setupUi(this);
|
||||
setWindowTitle(addBranch ? tr("Add Branch") : tr("Rename Branch"));
|
||||
m_ui->branchNameEdit->setValidator(new BranchNameValidator(this));
|
||||
connect(m_ui->branchNameEdit, SIGNAL(textChanged(QString)), this, SLOT(updateButtonStatus()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user