summaryrefslogtreecommitdiffstats
path: root/src/picitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/picitem.h')
-rw-r--r--src/picitem.h26
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: