forked from qt-creator/qt-creator
Git: Refactoring ChangeSelectionDialog
- added ability to fix working directory in constructor - show tooltip for commit Change-Id: Ife69bed696960b8ce0b929a24f45bc8bba85df49 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
4a6a13d30b
commit
75f10ab1dd
@@ -31,6 +31,8 @@
|
||||
#define CHANGESELECTIONDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QProcessEnvironment>
|
||||
QT_FORWARD_DECLARE_CLASS(QProcess)
|
||||
|
||||
#include "ui_changeselectiondialog.h"
|
||||
|
||||
@@ -41,7 +43,8 @@ class ChangeSelectionDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ChangeSelectionDialog(QWidget *parent = 0);
|
||||
ChangeSelectionDialog(const QString &workingDirectory = QString(), QWidget *parent = 0);
|
||||
~ChangeSelectionDialog();
|
||||
|
||||
QString change() const;
|
||||
|
||||
@@ -51,8 +54,15 @@ public:
|
||||
public slots:
|
||||
void selectWorkingDirectory();
|
||||
|
||||
private slots:
|
||||
void setToolTip(int exitCode);
|
||||
void recalculateToolTip(const QString &ref);
|
||||
|
||||
private:
|
||||
Ui_ChangeSelectionDialog m_ui;
|
||||
QProcess* m_process;
|
||||
QString m_gitBinaryPath;
|
||||
QProcessEnvironment m_gitEnvironment;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user