diff options
Diffstat (limited to 'src/electronics/components/magnitudecomparator.cpp')
-rw-r--r-- | src/electronics/components/magnitudecomparator.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/electronics/components/magnitudecomparator.cpp b/src/electronics/components/magnitudecomparator.cpp index 2659122..3e1f8f9 100644 --- a/src/electronics/components/magnitudecomparator.cpp +++ b/src/electronics/components/magnitudecomparator.cpp @@ -23,7 +23,7 @@ Item* MagnitudeComparator::construct( ItemDocument *itemDocument, bool newItem, LibraryItem* MagnitudeComparator::libraryItem() { return new LibraryItem( - QString("ec/magnitudecomparator"), + TQString("ec/magnitudecomparator"), i18n("Magnitude Comparator"), i18n("Integrated Circuits"), "ic1.png", @@ -114,29 +114,29 @@ void MagnitudeComparator::initPins() if ( newABLogicCount == m_oldABLogicCount ) return; - QStringList leftPins; + TQStringList leftPins; int space = 3 - newABLogicCount; for ( int i = 0; i < space; i++ ) leftPins << ""; for ( int i = 0; i < newABLogicCount; i++ ) - leftPins << QString("A%1").arg( QString::number(i) ); + leftPins << TQString("A%1").tqarg( TQString::number(i) ); for ( int i = 0; i < newABLogicCount; i++ ) - leftPins << QString("B%1").arg( QString::number(i) ); + leftPins << TQString("B%1").tqarg( TQString::number(i) ); for ( int i = 0; i < space; i++ ) leftPins << ""; - QStringList rightPins; + TQStringList rightPins; space = -space; for ( int i = 0; i < space; i++ ) rightPins << ""; - QString inNames[] = { "I: A>B", "I: A<B", "I: A=B" }; + TQString inNames[] = { "I: A>B", "I: A<B", "I: A=B" }; rightPins << inNames[2] << inNames[1] << inNames[0]; - QString outNames[] = { "O: A>B", "O: A<B", "O: A=B" }; + TQString outNames[] = { "O: A>B", "O: A<B", "O: A=B" }; rightPins << outNames[2] << outNames[1] << outNames[0]; for ( int i = 0; i < space; i++ ) rightPins << ""; - QStringList pins = leftPins + rightPins; + TQStringList pins = leftPins + rightPins; initDIPSymbol( pins, 88 ); initDIP(pins); @@ -166,7 +166,7 @@ void MagnitudeComparator::initPins() m_aLogic.resize(newABLogicCount); for ( int i=m_oldABLogicCount; i<newABLogicCount; ++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)(&MagnitudeComparator::inStateChanged) ); } @@ -174,7 +174,7 @@ void MagnitudeComparator::initPins() m_bLogic.resize(newABLogicCount); for ( int i=m_oldABLogicCount; i<newABLogicCount; ++i ) { - node = ecNodeWithID("B"+QString::number(i)); + node = ecNodeWithID("B"+TQString::number(i)); m_bLogic.insert( i, createLogicIn(node) ); m_bLogic[i]->setCallback( this, (CallbackPtr)(&MagnitudeComparator::inStateChanged) ); } @@ -183,7 +183,7 @@ void MagnitudeComparator::initPins() { for ( int i=newABLogicCount; i<m_oldABLogicCount; ++i ) { - QString id = "A"+QString::number(i); + TQString id = "A"+TQString::number(i); removeDisplayText(id); removeElement( m_aLogic[i], false ); removeNode(id); @@ -191,7 +191,7 @@ void MagnitudeComparator::initPins() m_aLogic.resize(newABLogicCount); for ( int i=newABLogicCount; i<m_oldABLogicCount; ++i ) { - QString id = "B"+QString::number(i); + TQString id = "B"+TQString::number(i); removeDisplayText(id); removeElement( m_bLogic[i], false ); removeNode(id); |