4#include <FileInfoProvider.h>
7#include <QPersistentModelIndex>
44 QList<QFuture<void>> results;
72 std::pair<bool, QVariant>
data(
const QModelIndex& index,
int role);
79 void onHandleWorkFinishJob(QPersistentModelIndex index,
int count);
85 mutable QHash<QPersistentModelIndex, int> cache;
86 mutable QSet<QPersistentModelIndex> requested;
The CCIMXFileSystemModel class Extends QFileSystemModel to support additional information providers....
Definition CCIMXFileSystemModel.h:13
The FileCountImplWorker class makes the file count session actually.
Definition FileCountInfo.h:13
~FileCountImplWorker()
Destroy the File Count Impl Worker object.
Definition FileCountInfo.cpp:6
void deptach_count_task(const QPersistentModelIndex &index, const QString &path)
functions depatch an asyncronous count issues,
Definition FileCountInfo.cpp:14
void fileCountFinished(QPersistentModelIndex index, int count)
fileCountFinished signals the finish of the count
FileCountImplWorker(QObject *parent=nullptr)
Construct a new File Count Impl Worker object.
Definition FileCountInfo.h:21
Definition FileCountInfo.h:47
QString provide_section_name()
provide_section_name means everything in the name lol
Definition FileCountInfo.h:62
std::pair< bool, QVariant > data(const QModelIndex &index, int role)
data provide the data to the views
Definition FileCountInfo.cpp:35
The FileInfoProvider class is such an abstract class that using in CCIMXFileSystemModel to provide th...
Definition FileInfoProvider.h:15