diff options
Diffstat (limited to 'src/electronics/components/binarycounter.cpp')
-rw-r--r-- | src/electronics/components/binarycounter.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/electronics/components/binarycounter.cpp b/src/electronics/components/binarycounter.cpp index f278104..a93a1b2 100644 --- a/src/electronics/components/binarycounter.cpp +++ b/src/electronics/components/binarycounter.cpp @@ -23,7 +23,7 @@ Item* BinaryCounter::construct( ItemDocument *itemDocument, bool newItem, const LibraryItem* BinaryCounter::libraryItem() { - QStringList ids; + TQStringList ids; ids << "ec/binary_counter" << "ec/4_bit_binary_counter"; return new LibraryItem( ids, @@ -56,7 +56,7 @@ BinaryCounter::BinaryCounter( ICNDocument *icnDocument, bool newItem, const char createProperty( "trig", Variant::Type::Select ); property("trig")->setCaption( i18n("Trigger Edge") ); - property("trig")->setAllowed( QStringList::split( ',', "Rising,Falling" ) ); + property("trig")->setAllowed( TQStringList::split( ',', "Rising,Falling" ) ); property("trig")->setValue("Rising"); createProperty( "bitcount", Variant::Type::Int ); @@ -86,14 +86,14 @@ void BinaryCounter::initPins( unsigned numBits ) if ( m_numBits == numBits ) return; - QStringList pins; + TQStringList pins; pins << "en" << ">" << "u/d" << "r"; - for ( int i = 0; i < QABS(4-int(numBits)); i++ ) + for ( int i = 0; i < TQABS(4-int(numBits)); i++ ) pins << ""; for ( int i = numBits-1; i >= 0; i-- ) - pins << QChar('A'+i); + pins << TQChar('A'+i); initDIPSymbol( pins, 64 ); initDIP(pins); @@ -101,13 +101,13 @@ void BinaryCounter::initPins( unsigned numBits ) if ( m_numBits < numBits ) { for ( unsigned i = m_numBits; i < numBits; i++ ) - m_pLogicOut[i] = createLogicOut( ecNodeWithID( QChar('A'+i) ), false ); + m_pLogicOut[i] = createLogicOut( ecNodeWithID( TQChar('A'+i) ), false ); } else { for ( unsigned i = numBits; i < m_numBits; i++ ) { - QString id = QChar('A'+i); + TQString id = TQChar('A'+i); removeElement( m_pLogicOut[i], false ); removeDisplayText(id); removeNode(id); |