forked from qt-creator/qt-creator
Fixes: Added dbl-click handling for remote branches
Task: RevBy: AutoTest: Details: Moved code to create a local branch from model to dialog which is slightly better since all the modifying app code is there.
This commit is contained in:
@@ -3,8 +3,10 @@
|
||||
|
||||
#include <QtGui/QDialog>
|
||||
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QPushButton;
|
||||
class QModelIndex;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace Git {
|
||||
@@ -40,10 +42,12 @@ namespace Git {
|
||||
void slotCheckoutSelectedBranch();
|
||||
void slotDeleteSelectedBranch();
|
||||
void slotLocalBranchActivated();
|
||||
void slotNewLocalBranchCreated(const QString &);
|
||||
void slotRemoteBranchActivated(const QModelIndex &);
|
||||
void slotCreateLocalBranch(const QString &branchName);
|
||||
|
||||
private:
|
||||
bool ask(const QString &title, const QString &what, bool defaultButton);
|
||||
void selectLocalBranch(const QString &b);
|
||||
|
||||
int selectedLocalBranchIndex() const;
|
||||
int selectedRemoteBranchIndex() const;
|
||||
|
||||
Reference in New Issue
Block a user