summaryrefslogtreecommitdiffstats
path: root/src/electronics/components/matrixdisplaydriver.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/matrixdisplaydriver.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/matrixdisplaydriver.cpp')
-rw-r--r--src/electronics/components/matrixdisplaydriver.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/electronics/components/matrixdisplaydriver.cpp b/src/electronics/components/matrixdisplaydriver.cpp
index da00bb7..a25bb7a 100644
--- a/src/electronics/components/matrixdisplaydriver.cpp
+++ b/src/electronics/components/matrixdisplaydriver.cpp
@@ -13,8 +13,8 @@
#include "matrixdisplaydriver.h"
#include <klocale.h>
-#include <qpainter.h>
-#include <qstring.h>
+#include <tqpainter.h>
+#include <tqstring.h>
#include <assert.h>
@@ -319,22 +319,22 @@ MatrixDisplayDriver::MatrixDisplayDriver( ICNDocument *icnDocument, bool newItem
createProperty( "diode-configuration", Variant::Type::Select );
property("diode-configuration")->setCaption( i18n("Configuration") );
- property("diode-configuration")->setAllowed( QStringList::split(',',"Row Cathode,Column Cathode") );
+ property("diode-configuration")->setAllowed( TQStringList::split(',',"Row Cathode,Column Cathode") );
property("diode-configuration")->setValue("Row Cathode");
property("diode-configuration")->setAdvanced(true);
- QStringList pins = QStringList::split( ',', "D0,D1,D2,D3,D4,D5,D6,D7,,,,,,C4,C3,C2,C1,C0,,R0,R1,R2,R3,R4,R5,R6", true );
+ TQStringList pins = TQStringList::split( ',', "D0,D1,D2,D3,D4,D5,D6,D7,,,,,,C4,C3,C2,C1,C0,,R0,R1,R2,R3,R4,R5,R6", true );
initDIPSymbol( pins, 64 );
initDIP(pins);
m_pValueLogic.resize( 8, 0l );
for ( unsigned i = 0; i < 8; ++i )
- m_pValueLogic[i] = createLogicIn( ecNodeWithID("D"+QString::number(i)) );
+ m_pValueLogic[i] = createLogicIn( ecNodeWithID("D"+TQString::number(i)) );
m_pRowLogic.resize( 7, 0l );
for ( unsigned i = 0; i < 7; ++i )
{
- m_pRowLogic[i] = createLogicOut( ecNodeWithID("R"+QString::number(i)), false );
+ m_pRowLogic[i] = createLogicOut( ecNodeWithID("R"+TQString::number(i)), false );
m_pRowLogic[i]->setOutputLowConductance( 1.0 );
m_pRowLogic[i]->setOutputHighVoltage(5.0);
}
@@ -342,7 +342,7 @@ MatrixDisplayDriver::MatrixDisplayDriver( ICNDocument *icnDocument, bool newItem
m_pColLogic.resize( 5, 0l );
for ( unsigned i = 0; i < 5; ++i )
{
- m_pColLogic[i] = createLogicOut( ecNodeWithID("C"+QString::number(i)), false );
+ m_pColLogic[i] = createLogicOut( ecNodeWithID("C"+TQString::number(i)), false );
m_pColLogic[i]->setOutputHighVoltage(5.0);
}
}