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/electronics/ecnode.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/electronics/ecnode.h') 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 +#include class ECNode; class Element; class Pin; class Switch; -class QTimer; +class TQTimer; -typedef QValueList ECNodeList; -typedef QValueList ElementList; -typedef QValueVector PinVector; +typedef TQValueList ECNodeList; +typedef TQValueList ElementList; +typedef TQValueVector PinVector; /** @short Electrical node with voltage / current / etc properties @@ -32,12 +32,13 @@ typedef QValueVector 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; }; -- cgit v1.2.1