| 1 | #ifndef GITRESETDIALOG_H |
| 2 | #define GITRESETDIALOG_H |
| 3 | |
| 4 | #include <QDialog> |
| 5 | |
| 6 | namespace Ui { |
| 7 | class GitResetDialog; |
| 8 | } |
| 9 | |
| 10 | class GitResetDialog : public QDialog |
| 11 | { |
| 12 | Q_OBJECT |
| 13 | |
| 14 | public: |
| 15 | explicit GitResetDialog(const QString& folder, QWidget *parent = nullptr); |
| 16 | ~GitResetDialog(); |
| 17 | int resetToCommit(const QString& commit); |
| 18 | |
| 19 | private slots: |
| 20 | void on_btnOk_clicked(); |
| 21 | |
| 22 | void on_btnCancel_clicked(); |
| 23 | |
| 24 | private: |
| 25 | Ui::GitResetDialog *ui; |
| 26 | QString mFolder; |
| 27 | }; |
| 28 | |
| 29 | #endif // GITRESETDIALOG_H |
| 30 | |