mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-18 16:32:33 +02:00
Fix example
This commit is contained in:
parent
5e69677cf5
commit
f91f8e8b92
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -73,5 +73,6 @@ private:
|
||||
|
||||
static int c_NumOfProcessors;
|
||||
static ULONG c_BufferSize;
|
||||
int m_tickRate;
|
||||
int m_tickRate = 500;
|
||||
QTimer m_updateTimer;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user