summaryrefslogtreecommitdiffstats
path: root/src/electronics/components/binarycounter.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/binarycounter.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/binarycounter.cpp')
-rw-r--r--src/electronics/components/binarycounter.cpp14
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);