From 87a016680e3677da3993f333561e79eb0cead7d5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 29 Jun 2011 16:05:55 +0000 Subject: 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 --- src/electronics/components/ecground.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/electronics/components/ecground.cpp') diff --git a/src/electronics/components/ecground.cpp b/src/electronics/components/ecground.cpp index efbfc41..2e98cfa 100644 --- a/src/electronics/components/ecground.cpp +++ b/src/electronics/components/ecground.cpp @@ -15,7 +15,7 @@ #include "pin.h" #include -#include +#include Item* ECGround::construct( ItemDocument *itemDocument, bool newItem, const char *id ) { @@ -24,7 +24,7 @@ Item* ECGround::construct( ItemDocument *itemDocument, bool newItem, const char LibraryItem* ECGround::libraryItem() { return new LibraryItem( - QString::QString("ec/ground"), + TQString::TQString("ec/ground"), i18n("Ground (0V)"), i18n("Sources"), "ground.png", @@ -47,12 +47,12 @@ ECGround::~ECGround() { } -void ECGround::drawShape( QPainter &p ) +void ECGround::drawShape( TQPainter &p ) { initPainter(p); int _x = (int)x()-8; int _y = (int)y()-8; - QPen pen; + TQPen pen; pen.setWidth(2); pen.setColor( p.pen().color() ); p.setPen(pen); -- cgit v1.2.3