Call: Use signal slots uniformly for calling.

This commit is contained in:
2025-06-19 15:37:39 +08:00
parent b2aa0d3752
commit 5f5569495e
14 changed files with 121 additions and 102 deletions

View File

@@ -1,13 +1,17 @@
#include "LocalFile.h"
#include "LocalFile.h"
#include <QDateTime>
#include <QDir>
#include <QFileInfo>
LocalFile::LocalFile(QObject* parent) : DirFileHelper(parent)
{
}
bool LocalFile::GetHome()
{
auto home = Util::GetUserHome();
pathCall_(home);
emit sigHome(home);
return true;
}
@@ -17,7 +21,7 @@ bool LocalFile::GetDirFile(const QString& dir)
if (!GetDirFile(dir, vec)) {
return false;
}
fileCall_(vec);
emit sigDirFile(vec);
return true;
}