diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
commit | 560378aaca1784ba19806a0414a32b20c744de39 (patch) | |
tree | ce0dfd7c3febf2a1adc7603d1019a8be2083c415 /kdesu/client.cpp | |
parent | d4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff) | |
download | tdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip |
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdesu/client.cpp')
-rw-r--r-- | kdesu/client.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kdesu/client.cpp b/kdesu/client.cpp index 5261886fc..30d6cf3e3 100644 --- a/kdesu/client.cpp +++ b/kdesu/client.cpp @@ -59,7 +59,7 @@ KDEsuClient::KDEsuClient() } // strip the screen number from the display - display.replace(TQRegExp("\\.[0-9]+$"), ""); + display.tqreplace(TQRegExp("\\.[0-9]+$"), ""); #else TQCString display("QWS"); #endif @@ -169,13 +169,13 @@ TQCString KDEsuClient::escape(const TQCString &str) { TQCString copy = str; int n = 0; - while ((n = copy.find("\\", n)) != -1) + while ((n = copy.tqfind("\\", n)) != -1) { copy.insert(n, '\\'); n += 2; } n = 0; - while ((n = copy.find("\"", n)) != -1) + while ((n = copy.tqfind("\"", n)) != -1) { copy.insert(n, '\\'); n += 2; @@ -313,7 +313,7 @@ TQValueList<TQCString> KDEsuClient::getKeys(const TQCString &group) // kdDebug(900) << "Found a matching entry: " << reply << endl; while (1) { - pos = reply.find( '\007', index ); + pos = reply.tqfind( '\007', index ); if( pos == -1 ) { if( index == 0 ) @@ -332,7 +332,7 @@ TQValueList<TQCString> KDEsuClient::getKeys(const TQCString &group) return list; } -bool KDEsuClient::findGroup(const TQCString &group) +bool KDEsuClient::tqfindGroup(const TQCString &group) { TQCString cmd = "CHKG "; cmd += escape(group); @@ -385,7 +385,7 @@ int KDEsuClient::stopServer() return command("STOP\n"); } -static TQString findDaemon() +static TQString tqfindDaemon() { TQString daemon = locate("bin", "kdesud"); if (daemon.isEmpty()) // if not in KDEDIRS, rely on PATH @@ -401,7 +401,7 @@ static TQString findDaemon() bool KDEsuClient::isServerSGID() { if (d->daemon.isEmpty()) - d->daemon = findDaemon(); + d->daemon = tqfindDaemon(); if (d->daemon.isEmpty()) return false; @@ -417,7 +417,7 @@ bool KDEsuClient::isServerSGID() int KDEsuClient::startServer() { if (d->daemon.isEmpty()) - d->daemon = findDaemon(); + d->daemon = tqfindDaemon(); if (d->daemon.isEmpty()) return -1; |