From 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 22 Jun 2011 00:30:31 +0000 Subject: TQt4 port kdenetwork This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- filesharing/advanced/nfs/nfsfile.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'filesharing/advanced/nfs/nfsfile.cpp') diff --git a/filesharing/advanced/nfs/nfsfile.cpp b/filesharing/advanced/nfs/nfsfile.cpp index c61a393c..4caea490 100644 --- a/filesharing/advanced/nfs/nfsfile.cpp +++ b/filesharing/advanced/nfs/nfsfile.cpp @@ -61,7 +61,7 @@ void NFSFile::removeEntry(NFSEntry *entry) bool NFSFile::hasEntry(NFSEntry *entry) { - return 0 < _entries.contains(entry); + return 0 < _entries.tqcontains(entry); } @@ -151,7 +151,7 @@ bool NFSFile::load() // Handle quotation marks if ( completeLine[0] == '"' ) { - int i = completeLine.find('"',1); + int i = completeLine.tqfind('"',1); if (i == -1) { kdError() << "NFSFile: Parse error: Missing quotation mark: " << completeLine << endl; @@ -161,9 +161,9 @@ bool NFSFile::load() hosts = completeLine.mid(i+1); } else { // no quotation marks - int i = completeLine.find(' '); + int i = completeLine.tqfind(' '); if (i == -1) - i = completeLine.find('\t'); + i = completeLine.tqfind('\t'); if (i == -1) path = completeLine; @@ -241,8 +241,8 @@ bool NFSFile::save() KProcIO proc; TQString command = TQString("cp %1 %2") - .arg(KProcess::quote( tempFile.name() )) - .arg(KProcess::quote( _url.path() )); + .tqarg(KProcess::quote( tempFile.name() )) + .tqarg(KProcess::quote( _url.path() )); if (restartNFSServer) command +=";exportfs -ra"; -- cgit v1.2.3