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/electronics/switch.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/electronics/switch.cpp')
-rw-r--r-- | src/electronics/switch.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/electronics/switch.cpp b/src/electronics/switch.cpp index 7cbda70..f91095a 100644 --- a/src/electronics/switch.cpp +++ b/src/electronics/switch.cpp @@ -17,13 +17,13 @@ #include "switch.h" #include <kdebug.h> -#include <qtimer.h> +#include <tqtimer.h> #include <cmath> #include <stdlib.h> // for rand #include <time.h> -Switch::Switch( Component * parent, Pin * p1, Pin * p2, State state ) +Switch::Switch( Component * tqparent, Pin * p1, Pin * p2, State state ) { m_bouncePeriod_ms = 5; m_bBounce = false; @@ -31,9 +31,9 @@ Switch::Switch( Component * parent, Pin * p1, Pin * p2, State state ) m_pBounceResistance = 0l; m_pP1 = p1; m_pP2 = p2; - m_pComponent = parent; - m_pStopBouncingTimer = new QTimer( this ); - connect( m_pStopBouncingTimer, SIGNAL(timeout()), this, SLOT(stopBouncing()) ); + m_pComponent = tqparent; + m_pStopBouncingTimer = new TQTimer( this ); + connect( m_pStopBouncingTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(stopBouncing()) ); // Force update m_state = (state == Open) ? Closed : Open; |