1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-15 06:52:34 +02:00

Fix example

This commit is contained in:
kelteseth 2018-11-06 17:00:21 +01:00
parent 5e69677cf5
commit f91f8e8b92
2 changed files with 3 additions and 2 deletions

View File

@ -7,9 +7,9 @@
CPU::CPU(QObject *parent) : QObject(parent)
{
m_updateTimer.start(m_updateTimer);
// signal obj, signal function pointer, slot obj, slot function pointer
connect(&m_updateTimer,&QTimer::timeout,this,&CPU::update);
m_updateTimer.start(m_tickRate);
}

View File

@ -73,5 +73,6 @@ private:
static int c_NumOfProcessors;
static ULONG c_BufferSize;
int m_tickRate;
int m_tickRate = 500;
QTimer m_updateTimer;
};