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/picitem.h | |
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/picitem.h')
-rw-r--r-- | src/picitem.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/picitem.h b/src/picitem.h index 0474ba8..7d936bf 100644 --- a/src/picitem.h +++ b/src/picitem.h @@ -13,7 +13,7 @@ #include "cnitem.h" -#include <qobject.h> +#include <tqobject.h> class MicroSettings; class FlowCodeDocument; @@ -23,17 +23,18 @@ class PinSettings; @short Allows visual setting of pin type/state @author David Saxton */ -class PinItem : public QObject, public QCanvasRectangle +class PinItem : public TQObject, public TQCanvasRectangle { Q_OBJECT + TQ_OBJECT public: - PinItem( FlowCodeDocument* _view, QPoint position, bool _onLeft, PinSettings *_pinSettings ); + PinItem( FlowCodeDocument* _view, TQPoint position, bool _onLeft, PinSettings *_pinSettings ); int rtti() const; - QRect boundingRect () const; + TQRect boundingRect () const; void switchState(); - QString id(); + TQString id(); /** * Called from ICNDocument when the pin item was dragged @@ -47,16 +48,16 @@ public slots: private: void initItem(); - void drawShape( QPainter& p ); + void drawShape( TQPainter& p ); void calcTextRect(); FlowCodeDocument *view; // Pointer to canvas view that the component item is currently on bool onLeft; PinSettings * m_pinSettings; - QRect m_textRect; - QFont m_font; + TQRect m_textRect; + TQFont m_font; }; -typedef QValueList<PinItem*> PinItemList; +typedef TQValueList<PinItem*> PinItemList; /** @@ -66,16 +67,17 @@ Allows visual editing of inital PIC settings class PicItem : public CNItem { Q_OBJECT + TQ_OBJECT public: PicItem( ICNDocument *icnDocument, bool newItem, const char *id, MicroSettings *_microSettings ); ~PicItem(); - void drawShape( QPainter &p ); + void drawShape( TQPainter &p ); - virtual void buttonStateChanged( const QString &id, bool state ); + virtual void buttonStateChanged( const TQString &id, bool state ); virtual bool isMovable() const { return false; } - static QString typeString() { return "microitem"; } + static TQString typeString() { return "microitem"; } virtual void updateZ( int baseZ ); protected slots: |