From 2c01fd64ddde84a6d78b632f7f3b7c3560dc288c Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 09:58:25 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit 73c08b592db45af554b9f21029bc549d70f683ab. --- kioslave/cgi/kcmcgi/kcmcgi.cpp | 2 +- kioslave/filter/filter.cc | 4 ++-- kioslave/finger/kio_finger.cpp | 2 +- kioslave/fish/fish.cpp | 2 +- kioslave/floppy/kio_floppy.cpp | 2 +- kioslave/info/info.cc | 2 +- kioslave/ldap/kio_ldap.cpp | 12 +++++------ kioslave/mac/kio_mac.cpp | 8 ++++---- kioslave/mac/kio_mac.h | 2 +- kioslave/man/kio_man.cpp | 16 +++++++-------- kioslave/man/man2html.cpp | 4 ++-- kioslave/media/kcmodule/main.cpp | 2 +- kioslave/media/kcmodule/managermoduleview.ui | 2 +- kioslave/media/kcmodule/notifiermodule.cpp | 2 +- kioslave/media/kcmodule/notifiermoduleview.ui | 2 +- kioslave/media/kcmodule/serviceview.ui | 10 ++++----- kioslave/media/kfile-plugin/kfilemediaplugin.cpp | 4 ++-- kioslave/media/mediamanager/halbackend.cpp | 4 ++-- .../media/medianotifier/notificationdialog.cpp | 4 ++-- .../media/medianotifier/notificationdialogview.ui | 4 ++-- kioslave/media/mounthelper/decryptdialog.ui | 12 +++++------ kioslave/media/propsdlgplugin/propertiespagegui.ui | 2 +- .../media/propsdlgplugin/propsdlgshareplugin.cpp | 2 +- kioslave/nfs/kio_nfs.cpp | 4 ++-- kioslave/pop3/pop3.cc | 24 +++++++++++----------- kioslave/settings/kio_settings.cc | 6 +++--- kioslave/sftp/ksshprocess.cpp | 6 +++--- kioslave/smb/kio_smb.h | 2 +- kioslave/smb/kio_smb_auth.cpp | 2 +- kioslave/smb/kio_smb_browse.cpp | 10 ++++----- kioslave/smb/kio_smb_config.cpp | 2 +- kioslave/smb/kio_smb_internal.cpp | 2 +- kioslave/smb/kio_smb_mount.cpp | 4 ++-- kioslave/smtp/capabilities.h | 2 +- kioslave/smtp/command.cc | 4 ++-- kioslave/smtp/interactivesmtpserver.cc | 4 ++-- kioslave/smtp/request.cc | 2 +- kioslave/tar/tar.cc | 10 ++++----- kioslave/thumbnail/textcreator.cpp | 4 ++-- kioslave/trash/kio_trash.cpp | 6 +++--- kioslave/trash/trashimpl.cpp | 4 ++-- 41 files changed, 102 insertions(+), 102 deletions(-) (limited to 'kioslave') diff --git a/kioslave/cgi/kcmcgi/kcmcgi.cpp b/kioslave/cgi/kcmcgi/kcmcgi.cpp index 3d089397a..d1a798aa2 100644 --- a/kioslave/cgi/kcmcgi/kcmcgi.cpp +++ b/kioslave/cgi/kcmcgi/kcmcgi.cpp @@ -22,7 +22,7 @@ #include #include -#include +#include #include #include #include diff --git a/kioslave/filter/filter.cc b/kioslave/filter/filter.cc index 8392dd160..5ae1a8867 100644 --- a/kioslave/filter/filter.cc +++ b/kioslave/filter/filter.cc @@ -56,7 +56,7 @@ int kdemain( int argc, char ** argv) FilterProtocol::FilterProtocol( const TQCString & protocol, const TQCString &pool, const TQCString &app ) : KIO::SlaveBase( protocol, pool, app ) { - TQString mimetype = TQString::fromLatin1("application/x-") + TQString::fromLatin1(protocol); + TQString mimetype = TQString::tqfromLatin1("application/x-") + TQString::tqfromLatin1(protocol); filter = KFilterBase::findFilterByMimeType( mimetype ); Q_ASSERT(filter); } @@ -157,7 +157,7 @@ void FilterProtocol::get( const KURL & ) void FilterProtocol::put( const KURL &/*url*/, int, bool /*_overwrite*/, bool /*_resume*/ ) { - error( KIO::ERR_UNSUPPORTED_ACTION, TQString::fromLatin1("put")); + error( KIO::ERR_UNSUPPORTED_ACTION, TQString::tqfromLatin1("put")); } void FilterProtocol::setSubURL(const KURL &url) diff --git a/kioslave/finger/kio_finger.cpp b/kioslave/finger/kio_finger.cpp index 77645b1b3..4e62b6bb5 100644 --- a/kioslave/finger/kio_finger.cpp +++ b/kioslave/finger/kio_finger.cpp @@ -21,7 +21,7 @@ #include #include -#include +#include #include #include #include diff --git a/kioslave/fish/fish.cpp b/kioslave/fish/fish.cpp index 95c91dc2c..2f0210dbd 100644 --- a/kioslave/fish/fish.cpp +++ b/kioslave/fish/fish.cpp @@ -1436,7 +1436,7 @@ void fishProtocol::run() { if (rc > 0) { int noff = received(buf,rc+offset); if (noff > 0) memmove(buf,buf+offset+rc-noff,noff); - //myDebug( << "left " << noff << " bytes: " << TQString::fromLatin1(buf,offset) << endl); + //myDebug( << "left " << noff << " bytes: " << TQString::tqfromLatin1(buf,offset) << endl); offset = noff; } else { if (errno == EINTR) diff --git a/kioslave/floppy/kio_floppy.cpp b/kioslave/floppy/kio_floppy.cpp index 723a359a0..a0c68a9d2 100644 --- a/kioslave/floppy/kio_floppy.cpp +++ b/kioslave/floppy/kio_floppy.cpp @@ -36,7 +36,7 @@ #include #include -#include +#include #include #include diff --git a/kioslave/info/info.cc b/kioslave/info/info.cc index 3a5974430..ab35f282b 100644 --- a/kioslave/info/info.cc +++ b/kioslave/info/info.cc @@ -4,7 +4,7 @@ #include #include -#include +#include #include #include diff --git a/kioslave/ldap/kio_ldap.cpp b/kioslave/ldap/kio_ldap.cpp index 46ce2e090..742d788bf 100644 --- a/kioslave/ldap/kio_ldap.cpp +++ b/kioslave/ldap/kio_ldap.cpp @@ -166,8 +166,8 @@ void LDAPProtocol::controlsFromMetaData( LDAPControl ***serverctrls, { TQString oid; bool critical; TQByteArray value; int i = 0; - while ( hasMetaData( TQString::fromLatin1("SERVER_CTRL%1").arg(i) ) ) { - TQCString val = metaData( TQString::fromLatin1("SERVER_CTRL%1").arg(i) ).utf8(); + while ( hasMetaData( TQString::tqfromLatin1("SERVER_CTRL%1").arg(i) ) ) { + TQCString val = metaData( TQString::tqfromLatin1("SERVER_CTRL%1").arg(i) ).utf8(); LDIF::splitControl( val, oid, critical, value ); kdDebug(7125) << "server ctrl #" << i << " value: " << val << " oid: " << oid << " critical: " << critical << " value: " << @@ -176,8 +176,8 @@ void LDAPProtocol::controlsFromMetaData( LDAPControl ***serverctrls, i++; } i = 0; - while ( hasMetaData( TQString::fromLatin1("CLIENT_CTRL%1").arg(i) ) ) { - TQCString val = metaData( TQString::fromLatin1("CLIENT_CTRL%1").arg(i) ).utf8(); + while ( hasMetaData( TQString::tqfromLatin1("CLIENT_CTRL%1").arg(i) ) ) { + TQCString val = metaData( TQString::tqfromLatin1("CLIENT_CTRL%1").arg(i) ).utf8(); LDIF::splitControl( val, oid, critical, value ); kdDebug(7125) << "client ctrl #" << i << " value: " << val << " oid: " << oid << " critical: " << critical << " value: " << @@ -197,7 +197,7 @@ int LDAPProtocol::asyncSearch( LDAPUrl &usrc ) if ( count > 0 ) { attrs = static_cast( malloc((count+1) * sizeof(char*)) ); for (int i=0; i currentDate.month()) { - year = currentDate.year() - 1; + if (month > tqcurrentDate.month()) { + year = tqcurrentDate.year() - 1; } else { - year = currentDate.year(); + year = tqcurrentDate.year(); } TQString h(hourMin.cap(1)); TQString m(hourMin.cap(2)); diff --git a/kioslave/mac/kio_mac.h b/kioslave/mac/kio_mac.h index cf7ecd1bb..7f74dfca7 100644 --- a/kioslave/mac/kio_mac.h +++ b/kioslave/mac/kio_mac.h @@ -24,7 +24,7 @@ #include #include #include -#include +#include class MacProtocol : public TQObject, public KIO::SlaveBase { diff --git a/kioslave/man/kio_man.cpp b/kioslave/man/kio_man.cpp index c8227e908..7cec22c27 100644 --- a/kioslave/man/kio_man.cpp +++ b/kioslave/man/kio_man.cpp @@ -24,7 +24,7 @@ #include #include -#include +#include #include #include #include @@ -82,7 +82,7 @@ bool parseUrl(const TQString& _url, TQString &title, TQString §ion) section = TQString::null; TQString url = _url; - if (url.at(0) == '/') { + if (url.tqat(0) == '/') { if (KStandardDirs::exists(url)) { title = url; return true; @@ -93,7 +93,7 @@ bool parseUrl(const TQString& _url, TQString &title, TQString §ion) } } - while (url.at(0) == '/') + while (url.tqat(0) == '/') url.remove(0,1); title = url; @@ -259,7 +259,7 @@ TQStringList MANProtocol::findPages(const TQString &_section, TQStringList list; // kdDebug() << "findPages '" << section << "' '" << title << "'\n"; - if (title.at(0) == '/') { + if (title.tqat(0) == '/') { list.append(title); return list; } @@ -279,7 +279,7 @@ TQStringList MANProtocol::findPages(const TQString &_section, // Section given as argument // sect_list += section; - while (section.at(section.length() - 1).isLetter()) { + while (section.tqat(section.length() - 1).isLetter()) { section.truncate(section.length() - 1); sect_list += section; } @@ -400,11 +400,11 @@ void MANProtocol::output(const char *insert) { m_outputBuffer.writeBlock(insert,strlen(insert)); } - if (!insert || m_outputBuffer.at() >= 2048) + if (!insert || m_outputBuffer.tqat() >= 2048) { m_outputBuffer.close(); data(m_outputBuffer.buffer()); - m_outputBuffer.setBuffer(TQByteArray()); + m_outputBuffer.tqsetBufferFromCopy(TQByteArray()); m_outputBuffer.open(IO_WriteOnly); } } @@ -505,7 +505,7 @@ void MANProtocol::get(const KURL& url ) m_outputBuffer.close(); data(m_outputBuffer.buffer()); - m_outputBuffer.setBuffer(TQByteArray()); + m_outputBuffer.tqsetBufferFromCopy(TQByteArray()); // tell we are done data(TQByteArray()); } diff --git a/kioslave/man/man2html.cpp b/kioslave/man/man2html.cpp index c7c41bc42..e31fe0fe6 100644 --- a/kioslave/man/man2html.cpp +++ b/kioslave/man/man2html.cpp @@ -144,7 +144,7 @@ # define kdDebug(x) cerr # define kdWarning(x) cerr << "WARNING " #else -# include +# include # include # include #endif @@ -1905,7 +1905,7 @@ public: return (index >= 0) && (index < (int)items.count()); } TABLEITEM &at(int index) { - return *items.at(index); + return *items.tqat(index); } TABLEROW *copyLayout() const; diff --git a/kioslave/media/kcmodule/main.cpp b/kioslave/media/kcmodule/main.cpp index 9a6f86ff0..da52ea119 100644 --- a/kioslave/media/kcmodule/main.cpp +++ b/kioslave/media/kcmodule/main.cpp @@ -20,7 +20,7 @@ #include "main.h" #include -#include +#include #include #include diff --git a/kioslave/media/kcmodule/managermoduleview.ui b/kioslave/media/kcmodule/managermoduleview.ui index 8a088f7cf..d5d42a066 100644 --- a/kioslave/media/kcmodule/managermoduleview.ui +++ b/kioslave/media/kcmodule/managermoduleview.ui @@ -59,7 +59,7 @@ Expanding - + 21 360 diff --git a/kioslave/media/kcmodule/notifiermodule.cpp b/kioslave/media/kcmodule/notifiermodule.cpp index 1035662dd..d5e36cc50 100644 --- a/kioslave/media/kcmodule/notifiermodule.cpp +++ b/kioslave/media/kcmodule/notifiermodule.cpp @@ -21,7 +21,7 @@ #include -#include +#include #include #include #include diff --git a/kioslave/media/kcmodule/notifiermoduleview.ui b/kioslave/media/kcmodule/notifiermoduleview.ui index ad508c03d..50f93bc40 100644 --- a/kioslave/media/kcmodule/notifiermoduleview.ui +++ b/kioslave/media/kcmodule/notifiermoduleview.ui @@ -138,7 +138,7 @@ Expanding - + 70 101 diff --git a/kioslave/media/kcmodule/serviceview.ui b/kioslave/media/kcmodule/serviceview.ui index a6c3063f6..6ae357699 100644 --- a/kioslave/media/kcmodule/serviceview.ui +++ b/kioslave/media/kcmodule/serviceview.ui @@ -20,7 +20,7 @@ 0 - + 640 480 @@ -80,13 +80,13 @@ 0 - + 40 40 - + 40 40 @@ -117,7 +117,7 @@ Minimum - + 20 20 @@ -147,7 +147,7 @@ Minimum - + 20 21 diff --git a/kioslave/media/kfile-plugin/kfilemediaplugin.cpp b/kioslave/media/kfile-plugin/kfilemediaplugin.cpp index 2de8a44fa..580a678bc 100644 --- a/kioslave/media/kfile-plugin/kfilemediaplugin.cpp +++ b/kioslave/media/kfile-plugin/kfilemediaplugin.cpp @@ -140,7 +140,7 @@ bool KFileMediaPlugin::readInfo(KFileMetaInfo &info, uint /*what*/) group = appendGroup(info, "mediumSummary"); - appendItem(group, "percent", TQString("%1%").arg(percent)); + appendItem(group, "percent", TQString("%1%").tqarg(percent)); TQPixmap bar(150, 20); TQPainter p(&bar); @@ -148,7 +148,7 @@ bool KFileMediaPlugin::readInfo(KFileMetaInfo &info, uint /*what*/) p.fillRect(0, 0, length, 20, Qt::red); p.fillRect(length, 0, 150-length, 20, Qt::green); - TQColorGroup cg = TQApplication::palette().active(); + TQColorGroup cg = TQApplication::tqpalette().active(); TQApplication::tqstyle().tqdrawPrimitive(TQStyle::PE_Panel, &p, TQRect(0, 0, 150, 20), cg, diff --git a/kioslave/media/mediamanager/halbackend.cpp b/kioslave/media/mediamanager/halbackend.cpp index 1452b14c9..58e2992e0 100644 --- a/kioslave/media/mediamanager/halbackend.cpp +++ b/kioslave/media/mediamanager/halbackend.cpp @@ -31,7 +31,7 @@ #include #include #include -#include +#include #include #include #include @@ -447,7 +447,7 @@ const char* HALBackend::findMediumUdiFromUdi(const char* udi) void HALBackend::ResetProperties(const char* mediumUdi, bool allowNotification) { kdDebug(1219) << "HALBackend::setProperties" << endl; - if ( TQString::fromLatin1( mediumUdi ).startsWith( "/org/kde/" ) ) + if ( TQString::tqfromLatin1( mediumUdi ).startsWith( "/org/kde/" ) ) { const Medium *cmedium = m_mediaList.findById(mediumUdi); if ( cmedium ) diff --git a/kioslave/media/medianotifier/notificationdialog.cpp b/kioslave/media/medianotifier/notificationdialog.cpp index 508af9819..9913f033d 100644 --- a/kioslave/media/medianotifier/notificationdialog.cpp +++ b/kioslave/media/medianotifier/notificationdialog.cpp @@ -18,7 +18,7 @@ */ #include "notificationdialog.h" -#include +#include #include #include @@ -53,7 +53,7 @@ NotificationDialog::NotificationDialog( KFileItem medium, NotifierSettings *sett updateActionsListBox(); - resize( TQSize(400,400).expandedTo( minimumSizeHint() ) ); + resize( TQSize(400,400).expandedTo( tqminimumSizeHint() ) ); m_actionWatcher = new KDirWatch(); diff --git a/kioslave/media/medianotifier/notificationdialogview.ui b/kioslave/media/medianotifier/notificationdialogview.ui index f7bd744be..032ea1f10 100644 --- a/kioslave/media/medianotifier/notificationdialogview.ui +++ b/kioslave/media/medianotifier/notificationdialogview.ui @@ -42,13 +42,13 @@ 0 - + 64 64 - + 64 64 diff --git a/kioslave/media/mounthelper/decryptdialog.ui b/kioslave/media/mounthelper/decryptdialog.ui index 939f0a36a..dfb8c17d0 100644 --- a/kioslave/media/mounthelper/decryptdialog.ui +++ b/kioslave/media/mounthelper/decryptdialog.ui @@ -55,13 +55,13 @@ 0 - + 48 48 - + 32 32 @@ -70,7 +70,7 @@ true - + AlignTop @@ -84,7 +84,7 @@ Expanding - + 31 41 @@ -109,7 +109,7 @@ <p><b>%1</b> is an encrypted storage device.</p> <p>Please enter the password to decrypt the storage device.</p> - + WordBreak|AlignTop @@ -189,7 +189,7 @@ - + WordBreak|AlignTop diff --git a/kioslave/media/propsdlgplugin/propertiespagegui.ui b/kioslave/media/propsdlgplugin/propertiespagegui.ui index 51ead3a25..3c98e1eb7 100644 --- a/kioslave/media/propsdlgplugin/propertiespagegui.ui +++ b/kioslave/media/propsdlgplugin/propertiespagegui.ui @@ -352,7 +352,7 @@ Display the short name as is; store a long name when the short name is not all u Expanding - + 20 20 diff --git a/kioslave/media/propsdlgplugin/propsdlgshareplugin.cpp b/kioslave/media/propsdlgplugin/propsdlgshareplugin.cpp index a3e237c40..59433a5da 100644 --- a/kioslave/media/propsdlgplugin/propsdlgshareplugin.cpp +++ b/kioslave/media/propsdlgplugin/propsdlgshareplugin.cpp @@ -19,7 +19,7 @@ #include #include -#include +#include #include #include diff --git a/kioslave/nfs/kio_nfs.cpp b/kioslave/nfs/kio_nfs.cpp index 6e6d5b312..d4a595c16 100644 --- a/kioslave/nfs/kio_nfs.cpp +++ b/kioslave/nfs/kio_nfs.cpp @@ -807,7 +807,7 @@ void NFSProtocol::completeAbsoluteLinkUDSEntry(UDSEntry& entry, const TQCString& struct passwd *user = getpwuid( uid ); if ( user ) { - m_usercache.insert( uid, new TQString(TQString::fromLatin1(user->pw_name)) ); + m_usercache.insert( uid, new TQString(TQString::tqfromLatin1(user->pw_name)) ); atom.m_str = user->pw_name; } else @@ -825,7 +825,7 @@ void NFSProtocol::completeAbsoluteLinkUDSEntry(UDSEntry& entry, const TQCString& struct group *grp = getgrgid( gid ); if ( grp ) { - m_groupcache.insert( gid, new TQString(TQString::fromLatin1(grp->gr_name)) ); + m_groupcache.insert( gid, new TQString(TQString::tqfromLatin1(grp->gr_name)) ); atom.m_str = grp->gr_name; } else diff --git a/kioslave/pop3/pop3.cc b/kioslave/pop3/pop3.cc index 0ab27f63b..8782fb80b 100644 --- a/kioslave/pop3/pop3.cc +++ b/kioslave/pop3/pop3.cc @@ -242,8 +242,8 @@ POP3Protocol::Resp POP3Protocol::getResponse(char *r_buf, unsigned int r_len, QMIN(r_len, (buf[4] == ' ' ? recv_len - 5 : recv_len - 4))); } - TQString command = TQString::fromLatin1(cmd); - TQString serverMsg = TQString::fromLatin1(buf).mid(5).stripWhiteSpace(); + TQString command = TQString::tqfromLatin1(cmd); + TQString serverMsg = TQString::tqfromLatin1(buf).mid(5).stripWhiteSpace(); if (command.left(4) == "PASS") { command = i18n("PASS "); @@ -353,7 +353,7 @@ int POP3Protocol::loginAPOP( char *challenge, KIO::AuthInfo &ai ) { char buf[512]; - TQString apop_string = TQString::fromLatin1("APOP "); + TQString apop_string = TQString::tqfromLatin1("APOP "); if (m_sUser.isEmpty() || m_sPass.isEmpty()) { // Prompt for usernames if (!openPassDlg(ai)) { @@ -461,7 +461,7 @@ int POP3Protocol::loginSASL( KIO::AuthInfo &ai ) { #ifdef HAVE_LIBSASL2 char buf[512]; - TQString sasl_buffer = TQString::fromLatin1("AUTH"); + TQString sasl_buffer = TQString::tqfromLatin1("AUTH"); int result; sasl_conn_t *conn = NULL; @@ -525,13 +525,13 @@ int POP3Protocol::loginSASL( KIO::AuthInfo &ai ) TQByteArray challenge, tmp; - TQString firstCommand = "AUTH " + TQString::fromLatin1( mechusing ); + TQString firstCommand = "AUTH " + TQString::tqfromLatin1( mechusing ); challenge.setRawData( out, outlen ); KCodecs::base64Encode( challenge, tmp ); challenge.resetRawData( out, outlen ); if ( !tmp.isEmpty() ) { firstCommand += " "; - firstCommand += TQString::fromLatin1( tmp.data(), tmp.size() ); + firstCommand += TQString::tqfromLatin1( tmp.data(), tmp.size() ); } challenge.resize( 2049 ); @@ -624,7 +624,7 @@ bool POP3Protocol::loginPASS( KIO::AuthInfo &ai ) m_sOldUser = m_sUser; m_sOldPass = m_sPass; - TQString one_string = TQString::fromLatin1("USER "); + TQString one_string = TQString::tqfromLatin1("USER "); one_string.append( m_sUser ); if ( command(one_string.local8Bit(), buf, sizeof(buf)) != Ok ) { @@ -638,7 +638,7 @@ bool POP3Protocol::loginPASS( KIO::AuthInfo &ai ) return false; } - one_string = TQString::fromLatin1("PASS "); + one_string = TQString::tqfromLatin1("PASS "); one_string.append(m_sPass); if ( command(one_string.local8Bit(), buf, sizeof(buf)) != Ok ) { @@ -857,7 +857,7 @@ void POP3Protocol::get(const KURL & url) TQString cmd, path = url.path(); int maxCommands = (metaData("pipelining") == "on") ? MAX_COMMANDS : 1; - if (path.at(0) == '/') + if (path.tqat(0) == '/') path.remove(0, 1); if (path.isEmpty()) { POP3_DEBUG << "We should be a dir!!" << endl; @@ -1176,7 +1176,7 @@ void POP3Protocol::listDir(const KURL &) uds_url.setUser(m_sUser); uds_url.setPass(m_sPass); uds_url.setHost(m_sServer); - uds_url.setPath(TQString::fromLatin1("/download/%1").arg(i + 1)); + uds_url.setPath(TQString::tqfromLatin1("/download/%1").arg(i + 1)); atom.m_str = uds_url.url(); atom.m_long = 0; entry.append(atom); @@ -1207,7 +1207,7 @@ void POP3Protocol::stat(const KURL & url) { TQString _path = url.path(); - if (_path.at(0) == '/') + if (_path.tqat(0) == '/') _path.remove(0, 1); UDSEntry entry; @@ -1244,7 +1244,7 @@ void POP3Protocol::del(const KURL & url, bool /*isfile */ ) } TQString _path = url.path(); - if (_path.at(0) == '/') { + if (_path.tqat(0) == '/') { _path.remove(0, 1); } diff --git a/kioslave/settings/kio_settings.cc b/kioslave/settings/kio_settings.cc index b58c8b5df..a525b028f 100644 --- a/kioslave/settings/kio_settings.cc +++ b/kioslave/settings/kio_settings.cc @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include #include #include @@ -127,7 +127,7 @@ KServiceGroup::Ptr SettingsProtocol::findGroup(const TQString &relPath) kdDebug() << "Trying harder to find group " << relPath << endl; for (unsigned int i=0; iname().at(0) == '.')) + if ((g->name().tqat(0) == '.')) continue; TQString relPath = g->relPath(); diff --git a/kioslave/sftp/ksshprocess.cpp b/kioslave/sftp/ksshprocess.cpp index 2ccab59b7..e923fe69e 100644 --- a/kioslave/sftp/ksshprocess.cpp +++ b/kioslave/sftp/ksshprocess.cpp @@ -206,7 +206,7 @@ void KSshProcess::removeSignalHandlers() { KSshProcess::KSshProcess() : mVersion(UNKNOWN_VER), mConnected(false), mRunning(false), mConnectState(0) { - mSshPath = KStandardDirs::findExe(TQString::fromLatin1("ssh")); + mSshPath = KStandardDirs::findExe(TQString::tqfromLatin1("ssh")); kdDebug(KSSHPROC) << "KSshProcess::KSshProcess(): ssh path [" << mSshPath << "]" << endl; @@ -292,7 +292,7 @@ TQString KSshProcess::versionStr() { return TQString::null; } - return TQString::fromLatin1(versionStrs[mVersion]); + return TQString::tqfromLatin1(versionStrs[mVersion]); } */ @@ -776,7 +776,7 @@ bool KSshProcess::connect() { i18n("Error encountered while talking to ssh."); mConnectState = STATE_FATAL; } - else if( line.find(TQString::fromLatin1(passwordPrompt[mVersion]), 0, false) != -1 ) { + else if( line.find(TQString::tqfromLatin1(passwordPrompt[mVersion]), 0, false) != -1 ) { mConnectState = STATE_TRY_PASSWD; } else if( line.find(passphrasePrompt[mVersion]) != -1 ) { diff --git a/kioslave/smb/kio_smb.h b/kioslave/smb/kio_smb.h index 581f66679..da40bda13 100644 --- a/kioslave/smb/kio_smb.h +++ b/kioslave/smb/kio_smb.h @@ -42,7 +42,7 @@ #include #include #include -#include +#include #include //-------------- diff --git a/kioslave/smb/kio_smb_auth.cpp b/kioslave/smb/kio_smb_auth.cpp index d4a48239f..1d2ff05e4 100644 --- a/kioslave/smb/kio_smb_auth.cpp +++ b/kioslave/smb/kio_smb_auth.cpp @@ -121,7 +121,7 @@ bool SMBSlave::checkPassword(SMBUrl &url) int index = share.find('/', 1); if (index > 1) share = share.left(index); - if (share.at(0) == '/') + if (share.tqat(0) == '/') share = share.mid(1); info.url.setPath("/" + share); info.verifyPath = true; diff --git a/kioslave/smb/kio_smb_browse.cpp b/kioslave/smb/kio_smb_browse.cpp index 7bd73124f..d8ac6d60d 100644 --- a/kioslave/smb/kio_smb_browse.cpp +++ b/kioslave/smb/kio_smb_browse.cpp @@ -34,7 +34,7 @@ #include #include -#include +#include #include @@ -199,7 +199,7 @@ KURL SMBSlave::checkURL(const KURL& kurl) const if (surl.length() == 5) // just the above return kurl; // unchanged - if (surl.at(5) != '/') { + if (surl.tqat(5) != '/') { surl = "smb://" + surl.mid(5); kdDebug(KIO_SMB) << "checkURL return1 " << surl << " " << KURL(surl) << endl; return KURL(surl); @@ -349,7 +349,7 @@ void SMBSlave::listDir( const KURL& kurl ) TQString comment = TQString::fromUtf8( dirp->comment ); if ( dirp->smbc_type == SMBC_SERVER || dirp->smbc_type == SMBC_WORKGROUP ) { atom.m_str = dirpName.lower(); - atom.m_str.at( 0 ) = dirpName.at( 0 ).upper(); + atom.m_str.tqat( 0 ) = dirpName.tqat( 0 ).upper(); if ( !comment.isEmpty() && dirp->smbc_type == SMBC_SERVER ) atom.m_str += " (" + comment + ")"; } else @@ -409,7 +409,7 @@ void SMBSlave::listDir( const KURL& kurl ) udsentry.append(atom); atom.m_uds = KIO::UDS_MIME_TYPE; - atom.m_str = TQString::fromLatin1("application/x-smb-server"); + atom.m_str = TQString::tqfromLatin1("application/x-smb-server"); udsentry.append(atom); } @@ -429,7 +429,7 @@ void SMBSlave::listDir( const KURL& kurl ) udsentry.append(atom); atom.m_uds = KIO::UDS_MIME_TYPE; - atom.m_str = TQString::fromLatin1("application/x-smb-workgroup"); + atom.m_str = TQString::tqfromLatin1("application/x-smb-workgroup"); udsentry.append(atom); atom.m_uds = KIO::UDS_URL; diff --git a/kioslave/smb/kio_smb_config.cpp b/kioslave/smb/kio_smb_config.cpp index c887a72f4..101ba160d 100644 --- a/kioslave/smb/kio_smb_config.cpp +++ b/kioslave/smb/kio_smb_config.cpp @@ -33,7 +33,7 @@ #include "kio_smb_internal.h" #include -#include +#include //=========================================================================== void SMBSlave::reparseConfiguration() { diff --git a/kioslave/smb/kio_smb_internal.cpp b/kioslave/smb/kio_smb_internal.cpp index e0da0219c..3660e3e8a 100644 --- a/kioslave/smb/kio_smb_internal.cpp +++ b/kioslave/smb/kio_smb_internal.cpp @@ -31,7 +31,7 @@ #include "kio_smb.h" #include "kio_smb_internal.h" -#include +#include #include #include diff --git a/kioslave/smb/kio_smb_mount.cpp b/kioslave/smb/kio_smb_mount.cpp index f9c366235..a3177b5c6 100644 --- a/kioslave/smb/kio_smb_mount.cpp +++ b/kioslave/smb/kio_smb_mount.cpp @@ -54,8 +54,8 @@ void SMBSlave::special( const TQByteArray & data) TQString share,host; if (sl.count()>=2) { - host=(*sl.at(0)).mid(2); - share=(*sl.at(1)); + host=(*sl.tqat(0)).mid(2); + share=(*sl.tqat(1)); kdDebug(KIO_SMB)<<"special() host -"<< host <<"- share -" << share <<"-"< #include #include -#include +#include #include #include #include -#include +#include #include #include diff --git a/kioslave/smtp/request.cc b/kioslave/smtp/request.cc index 84a1663f8..05f8bdc99 100644 --- a/kioslave/smtp/request.cc +++ b/kioslave/smtp/request.cc @@ -93,7 +93,7 @@ namespace KioSMTP { static bool isUsAscii( const TQString & s ) { for ( uint i = 0 ; i < s.length() ; ++i ) - if ( s[i].unicode() > 127 ) return false; + if ( s[i].tqunicode() > 127 ) return false; return true; } diff --git a/kioslave/tar/tar.cc b/kioslave/tar/tar.cc index 2c3de0215..2079666a0 100644 --- a/kioslave/tar/tar.cc +++ b/kioslave/tar/tar.cc @@ -125,7 +125,7 @@ bool ArchiveProtocol::checkNewFile( const KURL & url, TQString & path, KIO::Erro path.truncate( len - 1 ); } else - path = TQString::fromLatin1("/"); + path = TQString::tqfromLatin1("/"); kdDebug(7109) << "Found. archiveFile=" << archiveFile << " path=" << path << endl; break; } @@ -248,9 +248,9 @@ void ArchiveProtocol::listDir( const KURL & url ) if ( path.isEmpty() ) { - KURL redir( url.protocol() + TQString::fromLatin1( ":/") ); + KURL redir( url.protocol() + TQString::tqfromLatin1( ":/") ); kdDebug( 7109 ) << "url.path()==" << url.path() << endl; - redir.setPath( url.path() + TQString::fromLatin1("/") ); + redir.setPath( url.path() + TQString::tqfromLatin1("/") ); kdDebug( 7109 ) << "ArchiveProtocol::listDir: redirection " << redir.url() << endl; redirection( redir ); finished(); @@ -360,7 +360,7 @@ void ArchiveProtocol::stat( const KURL & url ) const KArchiveEntry* archiveEntry; if ( path.isEmpty() ) { - path = TQString::fromLatin1( "/" ); + path = TQString::tqfromLatin1( "/" ); archiveEntry = root; } else { path = TQString::fromLocal8Bit(remoteEncoding()->encode(path)); @@ -504,7 +504,7 @@ void ArchiveProtocol::get( const KURL & url ) if ( !firstRead ) { bufferSize = kMin( maxSize, fileSize ); - buffer.resize( bufferSize, TQGArray::SpeedOptim ); + buffer.tqresize( bufferSize, TQGArray::SpeedOptim ); } const TQ_LONG read = io->readBlock( buffer.data(), buffer.size() ); // Avoid to use bufferSize here, in case something went wrong. if ( read != bufferSize ) diff --git a/kioslave/thumbnail/textcreator.cpp b/kioslave/thumbnail/textcreator.cpp index 322c944a2..749dd4816 100644 --- a/kioslave/thumbnail/textcreator.cpp +++ b/kioslave/thumbnail/textcreator.cpp @@ -158,13 +158,13 @@ bool TextCreator::create(const TQString &path, int width, int height, TQImage &i } // check for newlines in the text (unix,dos) - TQChar ch = text.at( i ); + TQChar ch = text.tqat( i ); if ( ch == '\n' ) { newLine = true; continue; } - else if ( ch == '\r' && text.at(i+1) == '\n' ) + else if ( ch == '\r' && text.tqat(i+1) == '\n' ) { newLine = true; i++; // skip the next character (\n) as well diff --git a/kioslave/trash/kio_trash.cpp b/kioslave/trash/kio_trash.cpp index 07cdaec2f..4d4330ea9 100644 --- a/kioslave/trash/kio_trash.cpp +++ b/kioslave/trash/kio_trash.cpp @@ -30,7 +30,7 @@ #include #include -#include +#include #include #include @@ -78,10 +78,10 @@ TrashProtocol::TrashProtocol( const TQCString& protocol, const TQCString &pool, { struct passwd *user = getpwuid( getuid() ); if ( user ) - m_userName = TQString::fromLatin1(user->pw_name); + m_userName = TQString::tqfromLatin1(user->pw_name); struct group *grp = getgrgid( getgid() ); if ( grp ) - m_groupName = TQString::fromLatin1(grp->gr_name); + m_groupName = TQString::tqfromLatin1(grp->gr_name); } TrashProtocol::~TrashProtocol() diff --git a/kioslave/trash/trashimpl.cpp b/kioslave/trash/trashimpl.cpp index 696d6d305..8718dfe5f 100644 --- a/kioslave/trash/trashimpl.cpp +++ b/kioslave/trash/trashimpl.cpp @@ -262,7 +262,7 @@ bool TrashImpl::createInfo( const TQString& origPath, int& trashId, TQString& fi info += KURL::encode_string( makeRelativePath( topDirectoryPath( trashId ), origPath ), m_mibEnum ).latin1(); info += "\n"; info += "DeletionDate="; - info += TQDateTime::currentDateTime().toString( Qt::ISODate ).latin1(); + info += TQDateTime::tqcurrentDateTime().toString( Qt::ISODate ).latin1(); info += "\n"; size_t sz = info.size() - 1; // avoid trailing 0 from QCString @@ -429,7 +429,7 @@ bool TrashImpl::directRename( const TQString& src, const TQString& dest ) kdDebug() << k_funcinfo << src << " -> " << dest << endl; if ( ::rename( TQFile::encodeName( src ), TQFile::encodeName( dest ) ) != 0 ) { if (errno == EXDEV) { - error( KIO::ERR_UNSUPPORTED_ACTION, TQString::fromLatin1("rename") ); + error( KIO::ERR_UNSUPPORTED_ACTION, TQString::tqfromLatin1("rename") ); } else { if (( errno == EACCES ) || (errno == EPERM)) { error( KIO::ERR_ACCESS_DENIED, dest ); -- cgit v1.2.1