Merge pull request #1626 from srcejon/fix_testsource_timer

TestSource: Fix timing on Windows
pull/1629/head
Edouard Griffiths 2023-03-09 10:02:09 +01:00 zatwierdzone przez GitHub
commit 02e6890381
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -64,6 +64,7 @@ TestSourceWorker::TestSourceWorker(SampleSinkFifo* sampleFifo, QObject* parent)
{
connect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()), Qt::QueuedConnection);
connect(&m_timer, SIGNAL(timeout()), this, SLOT(tick()));
m_timer.setTimerType(Qt::PreciseTimer);
m_timer.start(50);
}
@ -76,7 +77,6 @@ TestSourceWorker::~TestSourceWorker()
void TestSourceWorker::startWork()
{
qDebug("TestSourceWorker::startWork");
m_timer.setTimerType(Qt::PreciseTimer);
m_running = true;
}