summaryrefslogtreecommitdiffstats
path: root/src/electronics/components/ecdiode.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/ecdiode.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/ecdiode.cpp')
-rw-r--r--src/electronics/components/ecdiode.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/electronics/components/ecdiode.cpp b/src/electronics/components/ecdiode.cpp
index 1d63bce..744f27e 100644
--- a/src/electronics/components/ecdiode.cpp
+++ b/src/electronics/components/ecdiode.cpp
@@ -14,7 +14,7 @@
#include "libraryitem.h"
#include <klocale.h>
-#include <qpainter.h>
+#include <tqpainter.h>
Item* ECDiode::construct( ItemDocument *itemDocument, bool newItem, const char *id )
{
@@ -72,7 +72,7 @@ ECDiode::ECDiode( ICNDocument *icnDocument, bool newItem, const char *id )
// createProperty( "R", Variant::Type::Double );
// property("R")->setCaption( i18n("Series Resistance") );
-// property("R")->setUnit( QChar(0x3a9) );
+// property("R")->setUnit( TQChar(0x3a9) );
// property("R")->setMinValue(1e-5);
// property("R")->setMaxValue(1e0);
// property("R")->setValue( ds.R );
@@ -98,17 +98,17 @@ void ECDiode::dataChanged()
}
-void ECDiode::drawShape( QPainter & p )
+void ECDiode::drawShape( TQPainter & p )
{
initPainter(p);
int _x = int(x());
int _y = int(y());
- QPointArray pa(3);
- pa[0] = QPoint( 8, 0 );
- pa[1] = QPoint( -8, -8 );
- pa[2] = QPoint( -8, 8 );
+ TQPointArray pa(3);
+ pa[0] = TQPoint( 8, 0 );
+ pa[1] = TQPoint( -8, -8 );
+ pa[2] = TQPoint( -8, 8 );
pa.translate( _x, _y );
p.drawPolygon(pa);
p.drawPolyline(pa);