diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-29 16:05:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-29 16:05:55 +0000 |
commit | 87a016680e3677da3993f333561e79eb0cead7d5 (patch) | |
tree | cbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/electronics/components/ecsubcircuit.cpp | |
parent | 6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff) | |
download | ktechlab-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/ecsubcircuit.cpp')
-rw-r--r-- | src/electronics/components/ecsubcircuit.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/electronics/components/ecsubcircuit.cpp b/src/electronics/components/ecsubcircuit.cpp index a69e720..8ae898c 100644 --- a/src/electronics/components/ecsubcircuit.cpp +++ b/src/electronics/components/ecsubcircuit.cpp @@ -17,7 +17,7 @@ #include <kdebug.h> #include <klocale.h> -#include <qfile.h> +#include <tqfile.h> Item* ECSubcircuit::construct( ItemDocument *itemDocument, bool newItem, const char *id ) { @@ -27,10 +27,10 @@ Item* ECSubcircuit::construct( ItemDocument *itemDocument, bool newItem, const c LibraryItem* ECSubcircuit::libraryItem() { return new LibraryItem( - QString::QString("ec/subcircuit"), - QString::null, - QString::null, - QString::null, + TQString::TQString("ec/subcircuit"), + TQString(), + TQString(), + TQString(), LibraryItem::lit_subcircuit, ECSubcircuit::construct ); } @@ -73,17 +73,17 @@ void ECSubcircuit::setNumExtCon( unsigned numExtCon ) p_icnDocument->flushDeleteList(); m_nodeMap.clear(); - QStringList pins; + TQStringList pins; for ( unsigned i=0; i<numExtCon; ++i ) { - pins += QString::number(i); + pins += TQString::number(i); } initDIPSymbol( pins, 80 ); // We don't want the text that the dip symbol gave us as we initialize it later... for ( unsigned i = 0; i < numExtCon; ++i ) - removeDisplayText( QString::number(i) ); + removeDisplayText( TQString::number(i) ); initDIP(pins); } @@ -100,7 +100,7 @@ void ECSubcircuit::dataChanged() } -void ECSubcircuit::setExtConName( unsigned numId, const QString & name ) +void ECSubcircuit::setExtConName( unsigned numId, const TQString & name ) { if ( numId > m_conNames.size() ) return; @@ -111,14 +111,14 @@ void ECSubcircuit::setExtConName( unsigned numId, const QString & name ) void ECSubcircuit::doneSCInit() { - QStringList pins; + TQStringList pins; for ( unsigned i = 0; i < m_conNames.size(); ++i ) pins << m_conNames[i]; initDIPSymbol( pins, 80 ); } -void ECSubcircuit::drawShape( QPainter &p ) +void ECSubcircuit::drawShape( TQPainter &p ) { Component::drawShape(p); } |