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/micro/micropackage.cpp | |
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/micro/micropackage.cpp')
-rw-r--r-- | src/micro/micropackage.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/micro/micropackage.cpp b/src/micro/micropackage.cpp index 9becbab..a5e8809 100644 --- a/src/micro/micropackage.cpp +++ b/src/micro/micropackage.cpp @@ -21,7 +21,7 @@ PicPin::PicPin() } -PicPin::PicPin( const QString &_pinID, PicPin::pin_type _type, const QString &_portName, int _portPosition ) +PicPin::PicPin( const TQString &_pinID, PicPin::pin_type _type, const TQString &_portName, int _portPosition ) { pinID = _pinID; type = _type; @@ -38,14 +38,14 @@ MicroPackage::~MicroPackage() { } -void MicroPackage::assignPin( int pinPosition, PicPin::pin_type type, const QString& pinID, const QString& portName, int portPosition ) +void MicroPackage::assignPin( int pinPosition, PicPin::pin_type type, const TQString& pinID, const TQString& portName, int portPosition ) { - if ( m_picPinMap.find(pinPosition) != m_picPinMap.end() ) + if ( m_picPinMap.tqfind(pinPosition) != m_picPinMap.end() ) { kdError() << "PicDevice::assignBidirPin: Attempting to reset pin "<<pinPosition<<endl; return; } - if ( !m_portNames.contains(portName) && !portName.isEmpty() ) + if ( !m_portNames.tqcontains(portName) && !portName.isEmpty() ) { m_portNames.append(portName); m_portNames.sort(); @@ -55,7 +55,7 @@ void MicroPackage::assignPin( int pinPosition, PicPin::pin_type type, const QStr } -PicPinMap MicroPackage::pins( uint pinType, const QString& portName ) +PicPinMap MicroPackage::pins( uint pinType, const TQString& portName ) { if ( pinType == 0 ) pinType = (1<<30)-1; @@ -74,10 +74,10 @@ PicPinMap MicroPackage::pins( uint pinType, const QString& portName ) return list; } -QStringList MicroPackage::pinIDs( uint pinType, const QString& portName ) +TQStringList MicroPackage::pinIDs( uint pinType, const TQString& portName ) { if ( pinType == 0 ) pinType = (1<<30)-1; - QStringList list; + TQStringList list; const PicPinMap::iterator picPinListEnd = m_picPinMap.end(); for ( PicPinMap::iterator it = m_picPinMap.begin(); it != picPinListEnd; ++it ) @@ -92,7 +92,7 @@ QStringList MicroPackage::pinIDs( uint pinType, const QString& portName ) return list; } -int MicroPackage::pinCount( uint pinType, const QString& portName ) +int MicroPackage::pinCount( uint pinType, const TQString& portName ) { if ( pinType == 0 ) pinType = (1<<30)-1; int count = 0; |