1 | #ifndef GITUSERCONFIGDIALOG_H |
2 | #define GITUSERCONFIGDIALOG_H |
3 | |
4 | #include <QDialog> |
5 | |
6 | namespace Ui { |
7 | class GitUserConfigDialog; |
8 | } |
9 | |
10 | class GitUserConfigDialog : public QDialog |
11 | { |
12 | Q_OBJECT |
13 | |
14 | public: |
15 | explicit GitUserConfigDialog(const QString& folder, QWidget *parent = nullptr); |
16 | ~GitUserConfigDialog(); |
17 | |
18 | private: |
19 | Ui::GitUserConfigDialog *ui; |
20 | QString mFolder; |
21 | |
22 | private: |
23 | void checkInfo(); |
24 | private slots: |
25 | void on_btnOk_clicked(); |
26 | void on_btnCancel_clicked(); |
27 | void on_txtUserName_textChanged(const QString &arg1); |
28 | void on_txtUserEmail_textChanged(const QString &arg1); |
29 | |
30 | // QWidget interface |
31 | protected: |
32 | void closeEvent(QCloseEvent *event) override; |
33 | }; |
34 | |
35 | #endif // GITUSERCONFIGDIALOG_H |
36 | |