From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: Initial conversion of kdepim to TQt This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- knode/knnntpclient.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'knode/knnntpclient.cpp') diff --git a/knode/knnntpclient.cpp b/knode/knnntpclient.cpp index dd4f28fe..a6b1e566 100644 --- a/knode/knnntpclient.cpp +++ b/knode/knnntpclient.cpp @@ -93,7 +93,7 @@ void KNNntpClient::doFetchGroups() char *s, *line; TQString name; - KNGroup::Status status; + KNGroup::tqStatus status; bool subscribed; while (getNextLine()) { @@ -132,7 +132,7 @@ void KNNntpClient::doFetchGroups() default : status = KNGroup::unknown; } - target->groups->append(new KNGroupInfo(name,TQString::null,false,subscribed,status)); + target->groups->append(new KNGroupInfo(name,TQString(),false,subscribed,status)); } doneLines++; } @@ -140,7 +140,7 @@ void KNNntpClient::doFetchGroups() if (!job->success() || job->canceled()) return; // stopped... - QSortedVector tempVector; + TQSortedVector tempVector; target->groups->toVector(&tempVector); tempVector.sort(); @@ -228,7 +228,7 @@ void KNNntpClient::doCheckNewGroups() char *s, *line; TQString name; - KNGroup::Status status; + KNGroup::tqStatus status; TQSortedList tmpList; tmpList.setAutoDelete(true); @@ -261,7 +261,7 @@ void KNNntpClient::doCheckNewGroups() default : status = KNGroup::unknown; } - tmpList.append(new KNGroupInfo(name,TQString::null,true,false,status)); + tmpList.append(new KNGroupInfo(name,TQString(),true,false,status)); } doneLines++; } @@ -525,7 +525,7 @@ void KNNntpClient::doPostArticle() TQCString s = getCurrentLine(); int start = s.findRev(TQRegExp("<[^\\s]*@[^\\s]*>")); if (start != -1) { // post response includes a recommended id - int end = s.find('>',start); + int end = s.tqfind('>',start); art->messageID()->from7BitString(s.mid(start,end-start+1)); art->assemble(); #ifndef NDEBUG @@ -569,7 +569,7 @@ void KNNntpClient::doFetchSource() bool KNNntpClient::openConnection() { - currentGroup = TQString::null; + currentGroup = TQString(); TQString oldPrefix = errorPrefix; errorPrefix=i18n("Unable to connect.\nThe following error occurred:\n"); -- cgit v1.2.3