summaryrefslogtreecommitdiffstats
path: root/src/common/port/port.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
commit0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch)
treeb95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/common/port/port.cpp
parentb79a2c28534cf09987eeeba3077fff9236df182a (diff)
downloadpiklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.tar.gz
piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.zip
TQt4 port piklab
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1238822 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/common/port/port.cpp')
-rw-r--r--src/common/port/port.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/common/port/port.cpp b/src/common/port/port.cpp
index c56c120..3df2d48 100644
--- a/src/common/port/port.cpp
+++ b/src/common/port/port.cpp
@@ -8,7 +8,7 @@
***************************************************************************/
#include "port.h"
-#if defined(Q_WS_WIN)
+#if defined(TQ_WS_WIN)
# include <sys/timeb.h>
#else
# include <sys/time.h>
@@ -65,16 +65,16 @@ const PortType::Data PortType::DATA[Nb_Types] = {
const char * const Port::IO_DIR_NAMES[3] = { "no_io", "in", "out" };
-QStringList Port::probedDeviceList(PortType type)
+TQStringList Port::probedDeviceList(PortType type)
{
- if ( !isAvailable(type) ) return QStringList();
+ if ( !isAvailable(type) ) return TQStringList();
switch (type.type()) {
case PortType::Serial: return Serial::probedDeviceList();
case PortType::Parallel: return Parallel::probedDeviceList();
case PortType::USB: return USB::probedDeviceList();
case PortType::Nb_Types: break;
}
- return QStringList();
+ return TQStringList();
}
bool Port::isAvailable(PortType type)
@@ -88,11 +88,11 @@ bool Port::isAvailable(PortType type)
return false;
}
-PortType Port::findType(const QString &portDevice)
+PortType Port::findType(const TQString &portDevice)
{
FOR_EACH(PortType, type) {
if ( !type.data().withDevice ) continue;
- if ( probedDeviceList(type).contains(portDevice) ) return type;
+ if ( probedDeviceList(type).tqcontains(portDevice) ) return type;
}
return PortType::Nb_Types;
}