forked from qt-creator/qt-creator
Git: Rework branch dialog
* Make adding new branches more discoverable * Make adding tracking branches more discoverable * Update UI Task-number: QTCREATORBUG-4943 Task-number: QTCREATORBUG-4944 Change-Id: Idcbf5f8321a3bd04c925e33d094bb479788a7d9b Reviewed-on: http://codereview.qt.nokia.com/588 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
36
src/plugins/git/branchadddialog.h
Normal file
36
src/plugins/git/branchadddialog.h
Normal file
@@ -0,0 +1,36 @@
|
||||
#ifndef BRANCHADDDIALOG_H
|
||||
#define BRANCHADDDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
namespace Git {
|
||||
namespace Internal {
|
||||
|
||||
|
||||
namespace Ui {
|
||||
class BranchAddDialog;
|
||||
}
|
||||
|
||||
class BranchAddDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit BranchAddDialog(QWidget *parent = 0);
|
||||
~BranchAddDialog();
|
||||
|
||||
void setBranchName(const QString &);
|
||||
QString branchName() const;
|
||||
|
||||
void setTrackedBranchName(const QString &name, bool remote);
|
||||
|
||||
bool track();
|
||||
|
||||
private:
|
||||
Ui::BranchAddDialog *m_ui;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Git
|
||||
|
||||
#endif // BRANCHADDDIALOG_H
|
||||
Reference in New Issue
Block a user