From e985f7e545f4739493965aad69bbecb136dc9346 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 16 Jun 2011 19:02:47 +0000 Subject: TQt4 port kdewebdev This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- quanta/src/dcopquanta.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'quanta/src/dcopquanta.cpp') diff --git a/quanta/src/dcopquanta.cpp b/quanta/src/dcopquanta.cpp index 149240d6..8dde34bc 100644 --- a/quanta/src/dcopquanta.cpp +++ b/quanta/src/dcopquanta.cpp @@ -40,11 +40,11 @@ TQStringList DCOPQuanta::selectors(const TQString& tag) if (key.startsWith("Selectors|")) { TQString selectorName = key.mid(10); - int index = selectorName.find(':'); + int index = selectorName.tqfind(':'); if (index != -1) selectorName = selectorName.mid(0, index); TQString tmpStr; - index = selectorName.find(rx); + index = selectorName.tqfind(rx); if (index != -1) { tmpStr = selectorName.left(index).lower(); @@ -54,8 +54,8 @@ TQStringList DCOPQuanta::selectors(const TQString& tag) } if (tmpStr.isEmpty() || tag.lower() == tmpStr || tmpStr == "*") { - tmpStr = selectorName.mid(index + 1).replace('.',' '); - if (!tmpStr.isEmpty() && !selectorList.contains(tmpStr)) + tmpStr = selectorName.mid(index + 1).tqreplace('.',' '); + if (!tmpStr.isEmpty() && !selectorList.tqcontains(tmpStr)) selectorList << tmpStr; } } @@ -93,11 +93,11 @@ TQStringList DCOPQuanta::groupElements(const TQString& group) if (key.startsWith(group + "|")) { TQString name = key.mid(10); - int index = name.find(':'); + int index = name.tqfind(':'); if (index != -1) name = name.mid(0, index); TQString tmpStr; - index = name.find("|"); + index = name.tqfind("|"); if (index != -1) { tmpStr = name.left(index).lower(); -- cgit v1.2.1