summaryrefslogtreecommitdiffstats
path: root/src/electronics/components/multiplexer.cpp
diff options
context:
space:
mode:
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);