summaryrefslogtreecommitdiffstats
path: root/src/electronics/ecnode.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/ecnode.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/ecnode.h')
-rw-r--r--src/electronics/ecnode.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/electronics/ecnode.h b/src/electronics/ecnode.h
index 6f8f36e..24d34e4 100644
--- a/src/electronics/ecnode.h
+++ b/src/electronics/ecnode.h
@@ -13,17 +13,17 @@
#include "node.h"
-#include <qvaluevector.h>
+#include <tqvaluevector.h>
class ECNode;
class Element;
class Pin;
class Switch;
-class QTimer;
+class TQTimer;
-typedef QValueList<ECNode*> ECNodeList;
-typedef QValueList<Element*> ElementList;
-typedef QValueVector<Pin*> PinVector;
+typedef TQValueList<ECNode*> ECNodeList;
+typedef TQValueList<Element*> ElementList;
+typedef TQValueVector<Pin*> PinVector;
/**
@short Electrical node with voltage / current / etc properties
@@ -32,12 +32,13 @@ typedef QValueVector<Pin*> PinVector;
class ECNode : public Node
{
Q_OBJECT
+ TQ_OBJECT
public:
- ECNode( ICNDocument *icnDocument, Node::node_type type, node_dir dir, const QPoint &pos, QString *id = 0L );
+ ECNode( ICNDocument *icnDocument, Node::node_type type, node_dir dir, const TQPoint &pos, TQString *id = 0L );
~ECNode();
- virtual void setParentItem( CNItem *parentItem );
- virtual void drawShape( QPainter &p );
+ virtual void setParentItem( CNItem *tqparentItem );
+ virtual void drawShape( TQPainter &p );
/**
* Set the number of pins "contained" in this node.
*/
@@ -64,7 +65,7 @@ class ECNode : public Node
bool m_bShowVoltageBars;
double m_prevV;
double m_prevI;
- QCanvasRectangle * m_pinPoint;
+ TQCanvasRectangle * m_pinPoint;
PinVector m_pins;
};