From 560378aaca1784ba19806a0414a32b20c744de39 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 3 Jan 2011 04:12:51 +0000 Subject: 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 --- kio/kio/ksambashare.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'kio/kio/ksambashare.cpp') diff --git a/kio/kio/ksambashare.cpp b/kio/kio/ksambashare.cpp index defeae4a7..7fba51ae2 100644 --- a/kio/kio/ksambashare.cpp +++ b/kio/kio/ksambashare.cpp @@ -33,7 +33,7 @@ public: KSambaSharePrivate(); bool readSmbConf(); - bool findSmbConf(); + bool tqfindSmbConf(); bool load(); TQDict sharedPaths; @@ -49,20 +49,20 @@ KSambaSharePrivate::KSambaSharePrivate() #define FILESHARECONF "/etc/security/fileshare.conf" bool KSambaSharePrivate::load() { - if (!findSmbConf()) + if (!tqfindSmbConf()) return false; return readSmbConf(); } /** - * Try to find the samba config file path + * Try to tqfind the samba config file path * First tries the kconfig, then checks * several well-known paths * @return wether a smb.conf was found. **/ -bool KSambaSharePrivate::findSmbConf() { - KSimpleConfig config(TQString::fromLatin1(FILESHARECONF),true); +bool KSambaSharePrivate::tqfindSmbConf() { + KSimpleConfig config(TQString::tqfromLatin1(FILESHARECONF),true); smbConf = config.readEntry("SMBCONF"); if ( TQFile::exists(smbConf) ) @@ -144,7 +144,7 @@ bool KSambaSharePrivate::readSmbConf() { } // parameter - int i = completeLine.find('='); + int i = completeLine.tqfind('='); if (i>-1) { @@ -203,7 +203,7 @@ bool KSambaShare::isDirectoryShared( const TQString & path ) const { if ( path[path.length()-1] != '/' ) fixedPath += '/'; - return d->sharedPaths.find(fixedPath) != 0; + return d->sharedPaths.tqfind(fixedPath) != 0; } TQStringList KSambaShare::sharedDirectories() const { -- cgit v1.2.3