summaryrefslogtreecommitdiffstats
path: root/src/electronics/components/multiplexer.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
commit87a016680e3677da3993f333561e79eb0cead7d5 (patch)
treecbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/electronics/components/multiplexer.cpp
parent6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff)
downloadktechlab-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/electronics/components/multiplexer.cpp')
-rw-r--r--src/electronics/components/multiplexer.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/electronics/components/multiplexer.cpp b/src/electronics/components/multiplexer.cpp
index e421fee..a8770e4 100644
--- a/src/electronics/components/multiplexer.cpp
+++ b/src/electronics/components/multiplexer.cpp
@@ -26,7 +26,7 @@ Item* Multiplexer::construct( ItemDocument *itemDocument, bool newItem, const ch
LibraryItem* Multiplexer::libraryItem()
{
return new LibraryItem(
- QString("ec/multiplexer"),
+ TQString("ec/multiplexer"),
i18n("Multiplexer"),
i18n("Integrated Circuits"),
"ic1.png",
@@ -109,14 +109,14 @@ void Multiplexer::initPins( unsigned newAddressSize )
if ( newXLogicCount == oldXLogicCount )
return;
- QStringList pins;
+ TQStringList pins;
const int length = newAddressSize + newXLogicCount;
for ( unsigned i=0; i<newAddressSize; ++i )
- pins += "A"+QString::number(i);
+ pins += "A"+TQString::number(i);
for ( unsigned i=0; i<newXLogicCount; ++i )
- pins += "X"+QString::number(i);
+ pins += "X"+TQString::number(i);
for ( int i=0; i<(length-(length%2))/2; ++i )
pins += "";
pins += "X";
@@ -139,7 +139,7 @@ void Multiplexer::initPins( unsigned newAddressSize )
m_xLogic.resize(newXLogicCount);
for ( unsigned i=oldXLogicCount; i<newXLogicCount; ++i )
{
- node = ecNodeWithID("X"+QString::number(i));
+ node = ecNodeWithID("X"+TQString::number(i));
m_xLogic.insert( i, createLogicIn(node) );
m_xLogic[i]->setCallback( this, (CallbackPtr)(&Multiplexer::inStateChanged) );
}
@@ -147,7 +147,7 @@ void Multiplexer::initPins( unsigned newAddressSize )
m_aLogic.resize(newAddressSize);
for ( unsigned i=oldAddressSize; i<newAddressSize; ++i )
{
- node = ecNodeWithID("A"+QString::number(i));
+ node = ecNodeWithID("A"+TQString::number(i));
m_aLogic.insert( i, createLogicIn(node) );
m_aLogic[i]->setCallback( this, (CallbackPtr)(&Multiplexer::inStateChanged) );
}
@@ -156,7 +156,7 @@ void Multiplexer::initPins( unsigned newAddressSize )
{
for ( unsigned i = newXLogicCount; i < oldXLogicCount; ++i )
{
- QString id = "X"+QString::number(i);
+ TQString id = "X"+TQString::number(i);
removeDisplayText(id);
removeElement( m_xLogic[i], false );
removeNode(id);
@@ -165,7 +165,7 @@ void Multiplexer::initPins( unsigned newAddressSize )
for ( unsigned i = newAddressSize; i < oldAddressSize; ++i )
{
- QString id = "A"+QString::number(i);
+ TQString id = "A"+TQString::number(i);
removeDisplayText(id);
removeElement( m_aLogic[i], false );
removeNode(id);