Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
colorEagleStdio
qtcpp_demo
提交
92be51a5
qtcpp_demo
项目概览
colorEagleStdio
/
qtcpp_demo
通知
465
Star
24
Fork
12
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
qtcpp_demo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
92be51a5
编写于
12月 23, 2021
作者:
M
manjaro-xfce
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加强制删除选项
上级
e565d8a7
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
57 addition
and
24 deletion
+57
-24
README
README
+8
-0
fileLoadControl/dialogfileloadctrl.cpp
fileLoadControl/dialogfileloadctrl.cpp
+22
-2
fileLoadControl/fileLoadControl_zh_CN.qm
fileLoadControl/fileLoadControl_zh_CN.qm
+0
-0
fileLoadControl/fileLoadControl_zh_CN.ts
fileLoadControl/fileLoadControl_zh_CN.ts
+27
-22
未找到文件。
README
浏览文件 @
92be51a5
...
...
@@ -19,11 +19,19 @@ cpp_threadpool
find0xff
论坛:二维数组中找最大特征数组
https://goldenhawking.blog.csdn.net/article/details/116240710
fileLoadControl
机械盘阵高并发——使用ImDisk 与 junction显著提高整体吞吐性能
https://goldenhawking.blog.csdn.net/article/details/122093588
floodfill_mdf
作业讲评-二值矩阵避障最短路径算法
https://goldenhawking.blog.csdn.net/article/details/109411787
findfoo
大道至简-基于C的库封装发布技术
https://goldenhawking.blog.csdn.net/article/details/119845838
huarongdao
广度优先求解算法演示(华容道C++代码,速度2644组/秒)
https://goldenhawking.blog.csdn.net/article/details/112414933
...
...
fileLoadControl/dialogfileloadctrl.cpp
浏览文件 @
92be51a5
...
...
@@ -5,6 +5,7 @@
#include <QFile>
#include <thread>
#include <QThread>
#include <QProcess>
#include <atomic>
DialogFileLoadCtrl
::
DialogFileLoadCtrl
(
QWidget
*
parent
)
:
QDialog
(
parent
)
...
...
@@ -60,15 +61,34 @@ void DialogFileLoadCtrl::cleanFile()
assert
(
m_total_size
>=
ifi
.
size
());
if
(
false
==
QFile
::
remove
(
fm
))
{
QString
msg
=
tr
(
"Fail Deleting %1."
).
arg
(
fm
);
QString
msg
=
tr
(
"Force Deleting %1."
).
arg
(
fm
);
//Force Delete Using https://github.com/michaelknigge/forcedel
for
(
int
ntr
=
0
;
ntr
<
10
&&
QFileInfo
::
exists
(
fm
);
++
ntr
)
{
QThread
::
msleep
(
200
);
QStringList
args
;
#ifdef __gnu_linux__
args
<<
"-f"
;
args
<<
fm
;
QProcess
::
execute
(
"rm"
,
args
);
#else
args
<<
fm
;
QProcess
::
execute
(
"ForceDel.exe"
,
args
);
#endif
}
slot_msg
(
msg
);
}
else
if
(
!
QFileInfo
::
exists
(
fm
))
{
m_total_size
-=
ifi
.
size
();
QString
msg
=
tr
(
"Succ Deleting %1."
).
arg
(
fm
);
slot_msg
(
msg
);
}
else
{
QString
msg
=
tr
(
"Fail Deleting %1."
).
arg
(
fm
);
slot_msg
(
msg
);
}
mp
.
remove
(
fm
);
if
(
!
mp
.
size
())
m_cache_files
.
erase
(
tmf
);
...
...
fileLoadControl/fileLoadControl_zh_CN.qm
浏览文件 @
92be51a5
无法预览此类型文件
fileLoadControl/fileLoadControl_zh_CN.ts
浏览文件 @
92be51a5
...
...
@@ -9,108 +9,113 @@
<
translation
>
文件拷贝与配额控制
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
22
"
/>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
41
"
/>
<
source
>
Watching
Folder
<
/source
>
<
translation
>
配额文件夹
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
32
"
/>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
53
"
/>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
51
"
/>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
72
"
/>
<
source
>
...
<
/source
>
<
translation
>
...
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
43
"
/>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
62
"
/>
<
source
>
Destin
Folder
<
/source
>
<
translation
>
目的文件夹
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
64
"
/>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
83
"
/>
<
source
>
Backup
files
with
Size
From
<
/source
>
<
translation
>
备份大小介于
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
90
"
/>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
109
"
/>
<
source
>
MB
To
<
/source
>
<
translation
>
MB
到
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
1
16
"
/>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
1
35
"
/>
<
source
>
MB
<
/source
>
<
translation
>
MB的文件
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
1
36
"
/>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
1
55
"
/>
<
source
>
Total
Keep
Load
<
/source
>
<
translation
>
配额空间
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
1
62
"
/>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
1
81
"
/>
<
source
>
GB
<
/source
>
<
translation
>
GB
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
1
73
"
/>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
1
92
"
/>
<
source
>
File
Typs
(
|
splitted
,
:
mean
empty
)
<
/source
>
<
translation
>
备份文件类型
(
|
分割
,:
表示空扩展名
)
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
183
"
/>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
202
"
/>
<
source
>
Running
<
/source
>
<
translation
>
运行开关
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
190
"
/>
<
location
filename
=
"
dialogfileloadctrl.ui
"
line
=
"
213
"
/>
<
source
>
.
<
/source
>
<
translation
>
.
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
dialogfileloadctrl.cpp
"
line
=
"
1
8
"
/>
<
location
filename
=
"
dialogfileloadctrl.cpp
"
line
=
"
1
9
"
/>
<
source
>
Program
Started
<
/source
>
<
translation
>
程序启动
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
dialogfileloadctrl.cpp
"
line
=
"
3
4
"
/>
<
location
filename
=
"
dialogfileloadctrl.cpp
"
line
=
"
3
5
"
/>
<
source
>
Start
maintaining
.
<
/source
>
<
translation
>
开始维护
.
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
dialogfileloadctrl.cpp
"
line
=
"
4
0
"
/>
<
location
filename
=
"
dialogfileloadctrl.cpp
"
line
=
"
4
1
"
/>
<
source
>
Completed
.
<
/source
>
<
translation
>
完成
.
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
dialogfileloadctrl.cpp
"
line
=
"
63
"
/>
<
location
filename
=
"
dialogfileloadctrl.cpp
"
line
=
"
89
"
/>
<
source
>
Fail
Deleting
%
1
.
<
/source
>
<
translation
>
删除文件失败
:
%
1
.
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
dialogfileloadctrl.cpp
"
line
=
"
69
"
/>
<
location
filename
=
"
dialogfileloadctrl.cpp
"
line
=
"
64
"
/>
<
source
>
Force
Deleting
%
1
.
<
/source
>
<
translation
>
强制删除文件
:
%
1
.
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
dialogfileloadctrl.cpp
"
line
=
"
84
"
/>
<
source
>
Succ
Deleting
%
1
.
<
/source
>
<
translation
>
删除文件成功
:
%
1
.
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
dialogfileloadctrl.cpp
"
line
=
"
1
25
"
/>
<
location
filename
=
"
dialogfileloadctrl.cpp
"
line
=
"
1
46
"
/>
<
source
>
Enuming
%
1
Files
%
2
Bytes
.
<
/source
>
<
translation
>
当前枚举到
%
1
个文件
,
占用
%
2
字节
.
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
dialogfileloadctrl.cpp
"
line
=
"
1
58
"
/>
<
location
filename
=
"
dialogfileloadctrl.cpp
"
line
=
"
1
79
"
/>
<
source
>
Succ
Copy
%
1
to
%
2
.
<
/source
>
<
translation
>
备份文件成功
:
%
1
到
%
2
.
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
dialogfileloadctrl.cpp
"
line
=
"
1
60
"
/>
<
location
filename
=
"
dialogfileloadctrl.cpp
"
line
=
"
1
81
"
/>
<
source
>
Fail
Copy
%
1
to
%
2
.
<
/source
>
<
translation
>
备份文件失败
:
%
1
到
%
2
.
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
dialogfileloadctrl.cpp
"
line
=
"
2
15
"
/>
<
location
filename
=
"
dialogfileloadctrl.cpp
"
line
=
"
2
39
"
/>
<
source
>
Watching
root
<
/source
>
<
translation
>
配额监视根文件夹
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
dialogfileloadctrl.cpp
"
line
=
"
2
25
"
/>
<
location
filename
=
"
dialogfileloadctrl.cpp
"
line
=
"
2
49
"
/>
<
source
>
backup
root
<
/source
>
<
translation
>
备份目的根文件夹
<
/translation
>
<
/message
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录