-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.h
More file actions
executable file
·40 lines (33 loc) · 794 Bytes
/
Copy pathmainwindow.h
File metadata and controls
executable file
·40 lines (33 loc) · 794 Bytes
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <memory>
#include <QDir>
namespace Ui {
class MainWindow;
}
class main_window : public QMainWindow
{
Q_OBJECT
public:
explicit main_window(QWidget *parent = 0);
~main_window();
private slots:
void select_directory();
void start_search();
void show_about_dialog();
void select_useless();
void delete_useless();
void addToTreeUI(std::map<QByteArray, QVector<std::pair<QString, int>>> hashs);
void setProgress(long long MAXS);
void doFinishThings();
void interruption();
private:
std::unique_ptr<Ui::MainWindow> ui;
QString curDir;
qint64 sum = 0;
qint64 sumProgress = 0;
std::clock_t time;
QThread* thread = nullptr;
};
#endif // MAINWINDOW_H