summaryrefslogtreecommitdiffstats
path: root/kcontrol/info/info_fbsd.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-19 01:42:14 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-19 01:42:14 +0000
commit8155225c9be993acc0512956416d195edfef4eb9 (patch)
treede4f3cd17614fc67e47eefabcdbe2fbe170c9be7 /kcontrol/info/info_fbsd.cpp
parent364641b8e0279758d236af39abd138d379328a19 (diff)
downloadtdebase-8155225c9be993acc0512956416d195edfef4eb9.tar.gz
tdebase-8155225c9be993acc0512956416d195edfef4eb9.zip
Enable compilation with TQt for Qt4 3.4.0 TP2
This should not break compatibility with TQt for Qt3; if it does please fix it ASAP! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1215552 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/info/info_fbsd.cpp')
-rw-r--r--kcontrol/info/info_fbsd.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kcontrol/info/info_fbsd.cpp b/kcontrol/info/info_fbsd.cpp
index 3ccd1c086..3f67b4b7a 100644
--- a/kcontrol/info/info_fbsd.cpp
+++ b/kcontrol/info/info_fbsd.cpp
@@ -347,24 +347,24 @@ bool GetInfo_Devices (TQListView *lbox)
TQString GetController(const TQString &line)
{
- if ( ( (line.startsWith("ad")) || (line.startsWith("afd")) || (line.startsWith("acd")) ) && (line.find(":") < 6) ) {
+ if ( ( (line.startsWith("ad")) || (line.startsWith("afd")) || (line.startsWith("acd")) ) && (line.tqfind(":") < 6) ) {
TQString controller = line;
- controller.remove(0, controller.find(" at ")+4);
- if (controller.find("-slave") != -1) {
- controller.remove(controller.find("-slave"), controller.length());
- } else if (controller.find("-master") != -1) {
- controller.remove(controller.find("-master"), controller.length());
+ controller.remove(0, controller.tqfind(" at ")+4);
+ if (controller.tqfind("-slave") != -1) {
+ controller.remove(controller.tqfind("-slave"), controller.length());
+ } else if (controller.tqfind("-master") != -1) {
+ controller.remove(controller.tqfind("-master"), controller.length());
} else
controller=TQString::null;
if (!controller.isNull())
return controller;
}
- if (line.find(" on ") != -1) {
+ if (line.tqfind(" on ") != -1) {
TQString controller;
controller = line;
- controller.remove(0, controller.find(" on ")+4);
- if (controller.find(" ") != -1)
- controller.remove(controller.find(" "), controller.length());
+ controller.remove(0, controller.tqfind(" on ")+4);
+ if (controller.tqfind(" ") != -1)
+ controller.remove(controller.tqfind(" "), controller.length());
return controller;
}
return TQString::null;
@@ -373,13 +373,13 @@ TQString GetController(const TQString &line)
Device *GetDevice(const TQString &line)
{
Device *dev;
- int colon = line.find(":");
+ int colon = line.tqfind(":");
if (colon == -1)
return 0;
dev = new Device;
dev->name = line.mid(0, colon);
- dev->description = line.mid(line.find("<")+1, line.length());
- dev->description.remove(dev->description.find(">"), dev->description.length());
+ dev->description = line.mid(line.tqfind("<")+1, line.length());
+ dev->description.remove(dev->description.tqfind(">"), dev->description.length());
return dev;
}