-
Notifications
You must be signed in to change notification settings - Fork 0
/
widget.h
48 lines (36 loc) · 792 Bytes
/
widget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
* @file widget.h
* @author ws01
* @email [email protected]
* @date 2021/5/10
*/
#ifndef CMAKETOQMAKE_WIDGET_H
#define CMAKETOQMAKE_WIDGET_H
#include <QWidget>
#include <QStringList>
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE
class Widget : public QWidget {
Q_OBJECT
public:
explicit Widget(QWidget *parent = nullptr);
~Widget() override;
private slots:
void selectQtDir();
void selectSourceDir();
void toCmake();
void toQmake();
void updateData();
private:
void findFile(const QString &dirPath);
private:
Ui::Widget *ui;
QString rootDirPath_;
QString proPath_;
QStringList sourceList_;
QStringList headerList_;
QStringList resourceList_;
QStringList uiList_;
};
#endif //CMAKETOQMAKE_WIDGET_H