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/ec555.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/ec555.cpp')
-rw-r--r-- | src/electronics/components/ec555.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/electronics/components/ec555.cpp b/src/electronics/components/ec555.cpp index eccf2bd..3f43cb3 100644 --- a/src/electronics/components/ec555.cpp +++ b/src/electronics/components/ec555.cpp @@ -17,7 +17,7 @@ #include <kiconloader.h> #include <klocale.h> -#include <qpainter.h> +#include <tqpainter.h> Item* EC555::construct( ItemDocument *itemDocument, bool newItem, const char *id ) { @@ -27,7 +27,7 @@ Item* EC555::construct( ItemDocument *itemDocument, bool newItem, const char *id LibraryItem* EC555::libraryItem() { return new LibraryItem( - QString::QString("ec/555"), + TQString::TQString("ec/555"), i18n("555"), i18n("Integrated Circuits"), "ic1.png", @@ -41,8 +41,8 @@ EC555::EC555( ICNDocument *icnDocument, bool newItem, const char *id ) { m_name = i18n("555"); m_desc = i18n("Common timer IC"); -// m_pins = QStringList::split( ',', "Gnd,Trg,Out,Res,CV,Th,Dis,Vcc" ); -// m_pins = QStringList::split( ',', "Dis,Th,Trg,Gnd,CV,Out,Res,Vcc" ); +// m_pins = TQStringList::split( ',', "Gnd,Trg,Out,Res,CV,Th,Dis,Vcc" ); +// m_pins = TQStringList::split( ',', "Dis,Th,Trg,Gnd,CV,Out,Res,Vcc" ); old_com1 = false; old_com2 = false; @@ -55,15 +55,15 @@ EC555::EC555( ICNDocument *icnDocument, bool newItem, const char *id ) // Pin 7 discharge = createPin( -40, -16, 0, "Dis" )->pin(); - addDisplayText( "dis", QRect( -32, -24, 24, 16 ), "Dis" ); + addDisplayText( "dis", TQRect( -32, -24, 24, 16 ), "Dis" ); // Pin 6 threshold = createPin( -40, 0, 0, "Th" )->pin(); - addDisplayText( "th", QRect( -32, -8, 24, 16 ), "Th" ); + addDisplayText( "th", TQRect( -32, -8, 24, 16 ), "Th" ); // Pin 2 trigger = createPin( -40, 16, 0, "Trg" )->pin(); - addDisplayText( "trg", QRect( -32, 8, 24, 16 ), "Trg" ); + addDisplayText( "trg", TQRect( -32, 8, 24, 16 ), "Trg" ); @@ -71,11 +71,11 @@ EC555::EC555( ICNDocument *icnDocument, bool newItem, const char *id ) // Pin 8 vcc = createPin( -16, -40, 90, "Vcc" )->pin(); - addDisplayText( "vcc", QRect( -24, -32, 16, 8 ), "+" ); + addDisplayText( "vcc", TQRect( -24, -32, 16, 8 ), "+" ); // Pin 4 reset = createPin( 16, -40, 90, "Res" )->pin(); - addDisplayText( "res", QRect( 8, -28, 16, 16 ), "Res" ); + addDisplayText( "res", TQRect( 8, -28, 16, 16 ), "Res" ); @@ -83,11 +83,11 @@ EC555::EC555( ICNDocument *icnDocument, bool newItem, const char *id ) // Pin 1 ground = createPin( -16, 40, 270, "Gnd" )->pin(); - addDisplayText( "gnd", QRect( -24, 20, 16, 8 ), "-" ); + addDisplayText( "gnd", TQRect( -24, 20, 16, 8 ), "-" ); // Pin 5 control = createPin( 16, 40, 270, "CV" )->pin(); - addDisplayText( "cv", QRect( 8, 12, 16, 16 ), "CV" ); + addDisplayText( "cv", TQRect( 8, 12, 16, 16 ), "CV" ); @@ -95,7 +95,7 @@ EC555::EC555( ICNDocument *icnDocument, bool newItem, const char *id ) // Pin 3 output = createPin( 40, 0, 180, "Out" )->pin(); - addDisplayText( "out", QRect( 8, -8, 16, 16 ), "Out" ); + addDisplayText( "out", TQRect( 8, -8, 16, 16 ), "Out" ); |