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/flowparts/pinmapping.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/flowparts/pinmapping.h')
-rw-r--r-- | src/flowparts/pinmapping.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/flowparts/pinmapping.h b/src/flowparts/pinmapping.h index 6131e45..8cb0747 100644 --- a/src/flowparts/pinmapping.h +++ b/src/flowparts/pinmapping.h @@ -42,7 +42,7 @@ class PinMapping }; /** - * Creates an invalid PinMapping, required by Qt templates. + * Creates an invalid PinMapping, required by TQt templates. */ PinMapping(); /** @@ -53,14 +53,14 @@ class PinMapping Type type() const { return m_type; } - QStringList pins() const { return m_pins; } - void setPins( const QStringList & pins ) { m_pins = pins; } + TQStringList pins() const { return m_pins; } + void setPins( const TQStringList & pins ) { m_pins = pins; } protected: - QStringList m_pins; + TQStringList m_pins; Type m_type; }; -typedef QMap< QString, PinMapping > PinMappingMap; +typedef TQMap< TQString, PinMapping > PinMappingMap; @@ -71,8 +71,9 @@ Dialog for editing a Pin Mapping class PinMapEditor : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - PinMapEditor( PinMapping * PinMapping, MicroInfo * Info, QWidget * parent, const char * name ); + PinMapEditor( PinMapping * PinMapping, MicroInfo * Info, TQWidget * tqparent, const char * name ); protected: virtual void slotApply(); @@ -93,6 +94,7 @@ For use with FlowParts that require a pin map (e.g. Keypad and Seven Segment). class PinMapDocument : public ICNDocument { Q_OBJECT + TQ_OBJECT public: PinMapDocument(); ~PinMapDocument(); @@ -100,7 +102,7 @@ class PinMapDocument : public ICNDocument void init( const PinMapping & PinMapping, MicroInfo * microInfo ); virtual bool isValidItem( Item * item ); - virtual bool isValidItem( const QString &itemId ); + virtual bool isValidItem( const TQString &itemId ); PinMapping pinMapping() const; @@ -120,6 +122,7 @@ class PinMapDocument : public ICNDocument class PinMapView : public ICNView { Q_OBJECT + TQ_OBJECT public: PinMapView( PinMapDocument * pinMapDocument, ViewContainer * viewContainer, uint viewAreaId, const char * name = 0l ); ~PinMapView(); |