From 87a016680e3677da3993f333561e79eb0cead7d5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 29 Jun 2011 16:05:55 +0000 Subject: TQt4 port ktechlab This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1238801 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/simulator.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/simulator.cpp') diff --git a/src/simulator.cpp b/src/simulator.cpp index c0f406d..bc6ab55 100644 --- a/src/simulator.cpp +++ b/src/simulator.cpp @@ -15,7 +15,7 @@ #include "switch.h" #include -#include +#include //BEGIN class Simulator @@ -56,8 +56,8 @@ Simulator::Simulator() m_pChangedCircuitStart = new Circuit; m_pChangedCircuitLast = m_pChangedCircuitStart; - QTimer * stepTimer = new QTimer(this); - connect( stepTimer, SIGNAL(timeout()), this, SLOT(step()) ); + TQTimer * stepTimer = new TQTimer(this); + connect( stepTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(step()) ); stepTimer->start(1); } @@ -80,7 +80,7 @@ void Simulator::step() if (!m_bIsSimulating) return; - // We are called a thousand times a second (the maximum allowed by QTimer), + // We are called a thousand times a second (the maximum allowed by TQTimer), // so divide the LINEAR_UPDATE_RATE by 1e3 for the number of loops we need // to do. const unsigned maxSteps = unsigned(LINEAR_UPDATE_RATE/1e3); @@ -247,7 +247,7 @@ void Simulator::createLogicChain( LogicOut * logicOut, const LogicInList & logic addChangedLogic(logicOut); logicOut->setCanAddChanged(false); - if ( !m_logicChainStarts.contains( logicOut ) ) + if ( !m_logicChainStarts.tqcontains( logicOut ) ) m_logicChainStarts << logicOut; } @@ -383,8 +383,8 @@ void Simulator::removeLogicInReferences( LogicIn * logicIn ) if ( !logicIn ) return; - QValueList::iterator end = m_logicChainStarts.end(); - for ( QValueList::iterator it = m_logicChainStarts.begin(); it != end; ++it ) + TQValueList::iterator end = m_logicChainStarts.end(); + for ( TQValueList::iterator it = m_logicChainStarts.begin(); it != end; ++it ) { LogicIn * logicCallback = *it; while (logicCallback) -- cgit v1.2.3