summaryrefslogtreecommitdiffstats
path: root/src/electronics/switch.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
commit87a016680e3677da3993f333561e79eb0cead7d5 (patch)
treecbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/electronics/switch.h
parent6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff)
downloadktechlab-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.h')
-rw-r--r--src/electronics/switch.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/electronics/switch.h b/src/electronics/switch.h
index 40247c9..17fd493 100644
--- a/src/electronics/switch.h
+++ b/src/electronics/switch.h
@@ -11,21 +11,22 @@
#ifndef SWITCH_H
#define SWITCH_H
-#include <qguardedptr.h>
-#include <qobject.h>
+#include <tqguardedptr.h>
+#include <tqobject.h>
class CircuitDocument;
class Component;
class Pin;
class Resistance;
-class QTimer;
+class TQTimer;
/**
@author David Saxton
*/
-class Switch : public QObject
+class Switch : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
enum State
@@ -34,7 +35,7 @@ class Switch : public QObject
Closed,
};
- Switch( Component * parent, Pin * p1, Pin * p2, State state );
+ Switch( Component * tqparent, Pin * p1, Pin * p2, State state );
~Switch();
/**
* If bouncing has been set to true, then the state will not switch
@@ -63,7 +64,7 @@ class Switch : public QObject
protected slots:
/**
- * Called from a QTimer timeout - our bouncing period has come to an
+ * Called from a TQTimer timeout - our bouncing period has come to an
* end. This will then fully disconnect or connect the pins depending
* on the current state.
*/
@@ -78,9 +79,9 @@ class Switch : public QObject
Resistance * m_pBounceResistance;
State m_state;
Component * m_pComponent;
- QGuardedPtr<Pin> m_pP1;
- QGuardedPtr<Pin> m_pP2;
- QTimer * m_pStopBouncingTimer;
+ TQGuardedPtr<Pin> m_pP1;
+ TQGuardedPtr<Pin> m_pP2;
+ TQTimer * m_pStopBouncingTimer;
};
#endif