diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-29 16:05:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-29 16:05:55 +0000 |
commit | 87a016680e3677da3993f333561e79eb0cead7d5 (patch) | |
tree | cbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/simulator.cpp | |
parent | 6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff) | |
download | ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.tar.gz ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.zip |
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
Diffstat (limited to 'src/simulator.cpp')
-rw-r--r-- | src/simulator.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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 <kstaticdeleter.h> -#include <qtimer.h> +#include <tqtimer.h> //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<LogicOut*>::iterator end = m_logicChainStarts.end(); - for ( QValueList<LogicOut*>::iterator it = m_logicChainStarts.begin(); it != end; ++it ) + TQValueList<LogicOut*>::iterator end = m_logicChainStarts.end(); + for ( TQValueList<LogicOut*>::iterator it = m_logicChainStarts.begin(); it != end; ++it ) { LogicIn * logicCallback = *it; while (logicCallback) |