Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4063b597a2 | |||
| 18319e61dd | |||
| 1b38dd73b6 | |||
| 44e438a107 | |||
| 9c85cbbca7 |
@@ -2,3 +2,5 @@
|
|||||||
/cmake-build-debug/
|
/cmake-build-debug/
|
||||||
/.idea/
|
/.idea/
|
||||||
/windeploy/
|
/windeploy/
|
||||||
|
|
||||||
|
build
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ set(CMAKE_AUTOUIC ON)
|
|||||||
# qrc
|
# qrc
|
||||||
#set(QRC_SOURCE_FILES img.qrc)
|
#set(QRC_SOURCE_FILES img.qrc)
|
||||||
# 设置
|
# 设置
|
||||||
set(CMAKE_PREFIX_PATH "C:/Qt/Qt5.14.2/5.14.2/mingw73_64")
|
set(CMAKE_PREFIX_PATH "/home/tian/Qt5.12.9/5.12.9/gcc_64")
|
||||||
# 添加用到的qt库
|
# 添加用到的qt库
|
||||||
find_package(Qt5 COMPONENTS
|
find_package(Qt5 COMPONENTS
|
||||||
Core
|
Core
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.5 MiB After Width: | Height: | Size: 1.5 MiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
@@ -1,8 +1,8 @@
|
|||||||
# 重复文件检测工具
|
# 重复文件检测工具
|
||||||
|
## demo
|
||||||
|

|
||||||
|
|
||||||

|

|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## 环境
|
## 环境
|
||||||
- Clion 2022.1.2
|
- Clion 2022.1.2
|
||||||
@@ -12,10 +12,38 @@
|
|||||||
- 单个文件计算md5
|
- 单个文件计算md5
|
||||||
- 文件夹内重复文件检测
|
- 文件夹内重复文件检测
|
||||||
|
|
||||||
## 下载
|
## 使用
|
||||||
|
### windows release下载
|
||||||
[windowsRelease-v1.0.2](https://github.com/tianzhendong/duplicateFilesCheck/releases/download/v1.0.2/duplicateFilesCheckv1.0.2.zip)
|
[windowsRelease-v1.0.2](https://github.com/tianzhendong/duplicateFilesCheck/releases/download/v1.0.2/duplicateFilesCheckv1.0.2.zip)
|
||||||
[windowsRelease-v1.0.3](https://github.com/tianzhendong/duplicateFilesCheck/releases/download/v1.0.3/duplicateFilesCheckv1.0.3.zip)
|
|
||||||
|
[windowsRelease-v1.0.3](https://github.com/tianzhendong/duplicateFilesCheck/releases/download/v1.0.3/windowsRelease-v1.0.3.zip)
|
||||||
|
|
||||||
|
### Linux编译
|
||||||
|
|
||||||
|
下载源码
|
||||||
|
```bash
|
||||||
|
git clone git@github.com:tianzhendong/duplicateFilesCheck.git
|
||||||
|
|
||||||
|
cd duplicateFilesCheck
|
||||||
|
```
|
||||||
|
|
||||||
|
修改qt路径
|
||||||
|
```bash
|
||||||
|
vim CMakeLists.txt
|
||||||
|
```
|
||||||
|
将qt路径修改为对应的目录
|
||||||
|
```CMakeLists
|
||||||
|
# 设置
|
||||||
|
set(CMAKE_PREFIX_PATH "/home/tian/Qt5.12.9/5.12.9/gcc_64")
|
||||||
|
```
|
||||||
|
编译&运行
|
||||||
|
```bash
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
./DuplicateFilesCheck
|
||||||
|
```
|
||||||
|
|
||||||
## 更新记录
|
## 更新记录
|
||||||
### 20220619 v1.0.2
|
### 20220619 v1.0.2
|
||||||
@@ -24,3 +52,6 @@
|
|||||||
|
|
||||||
### 20220620 v1.0.3
|
### 20220620 v1.0.3
|
||||||
- [x] 修改UI
|
- [x] 修改UI
|
||||||
|
|
||||||
|
### 20220714
|
||||||
|
- [x] 修改文档
|
||||||
|
|||||||
+1
-2
@@ -5,7 +5,7 @@
|
|||||||
// You may need to build the project (run Qt uic code generator) to get "ui_MainWindow.h" resolved
|
// You may need to build the project (run Qt uic code generator) to get "ui_MainWindow.h" resolved
|
||||||
|
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
#include "ui_MainWindow.h"
|
#include "ui_mainwindow.h"
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
|
|
||||||
MainWindow::MainWindow(QWidget *parent) :
|
MainWindow::MainWindow(QWidget *parent) :
|
||||||
@@ -20,7 +20,6 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
connect(duplicateFiles, SIGNAL(destroyed(QObject *)),
|
connect(duplicateFiles, SIGNAL(destroyed(QObject *)),
|
||||||
myThread, SLOT(deleteLater()));
|
myThread, SLOT(deleteLater()));
|
||||||
|
|
||||||
// ui->labelTitle->setText("文件一致性检测工具");
|
|
||||||
connect(ui->btnSelectFile, SIGNAL(clicked(bool)), this, SLOT(calMd5ofFileSlot()));
|
connect(ui->btnSelectFile, SIGNAL(clicked(bool)), this, SLOT(calMd5ofFileSlot()));
|
||||||
connect(ui->btnSelectDir, SIGNAL(clicked(bool)), this, SLOT(selectDirSlot()));
|
connect(ui->btnSelectDir, SIGNAL(clicked(bool)), this, SLOT(selectDirSlot()));
|
||||||
connect(this, SIGNAL(calFileMd5Signal(const QString &)),
|
connect(this, SIGNAL(calFileMd5Signal(const QString &)),
|
||||||
|
|||||||
Reference in New Issue
Block a user