12#include <QApplication>
26 struct timespec ts = {ms / 1000, (ms % 1000) * 1000 * 1000};
27 nanosleep(&ts,
nullptr);
45 :
FindFilesWorker(parameters), m_results(results), m_milliseconds(milliseconds) {}
49 qSleep(m_milliseconds);
50 QCoreApplication::processEvents();
51 emit finished(m_results);
72 connect(
this, SIGNAL(fileFindingFinished()),
this, SLOT(setSignalRecieved()));
#define EXPORT_OPT_MANTIDQT_COMMON
void run() override
Override parent class run().
FakeFindFilesThread(const FindFilesSearchParameters ¶meters, const FindFilesSearchResults &results=FindFilesSearchResults(), int milliseconds=100)
FindFilesSearchResults m_results
A class to allow the asynchronous finding of files.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
POD struct to hold details about the parameters of a file search.
POD struct to hold details about the results of a file search.