赞
踩
- if (!newFile.isEmpty() && !deleteFile.isEmpty())
- {
- // 文件/目录重命名
- if ((newFile.count() == 1) && (deleteFile.count() == 1))
- {
- qDebug() << QString("File Renamed from %1 to %2").arg(deleteFile.first()).arg(newFile.first());
- }
- }
- else
- {
- // 添加新文件/目录至Dir
- if (!newFile.isEmpty())
- {
- qDebug() << "New Files/Dirs added: " << newFile;
-
- foreach (QString file, newFile)
- {
- // 处理操作每个新文件....
- //QMessageBox::warning(NULL, "警告弹窗", "数据存储故障", QMessageBox::Yes, QMessageBox::Yes);
- }
- }
- else
- {
- QMessageBox::warning(NULL, "警告弹窗", "数据存储故障", QMessageBox::Yes, QMessageBox::Yes);
- }
- // 从Dir中删除文件/目录
- if (!deleteFile.isEmpty())
- {
- qDebug() << "File
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。