MCPcopy Create free account
hub / github.com/YACReader/yacreader / moveAndConnectRemoverToThread

Function moveAndConnectRemoverToThread

YACReaderLibrary/library_window.cpp:95–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93namespace {
94template<class Remover>
95void moveAndConnectRemoverToThread(Remover *remover, QThread *thread)
96{
97 Q_ASSERT(remover);
98 Q_ASSERT(thread);
99 remover->moveToThread(thread);
100 QObject::connect(thread, &QThread::started, remover, &Remover::process);
101 QObject::connect(remover, &Remover::finished, remover, &QObject::deleteLater);
102 QObject::connect(remover, &Remover::finished, thread, &QThread::quit);
103 QObject::connect(thread, &QThread::finished, thread, &QObject::deleteLater);
104}
105}
106
107using namespace YACReader;

Callers 2

deleteSelectedFolderMethod · 0.85
deleteComicsFromDiskMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected