diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
commit | 4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch) | |
tree | b0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kdeaccounts-plugin/kdeaccountsformat.cpp | |
parent | 1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff) | |
download | tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeaccounts-plugin/kdeaccountsformat.cpp')
-rw-r--r-- | kdeaccounts-plugin/kdeaccountsformat.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kdeaccounts-plugin/kdeaccountsformat.cpp b/kdeaccounts-plugin/kdeaccountsformat.cpp index d445e311..fc9f2cb3 100644 --- a/kdeaccounts-plugin/kdeaccountsformat.cpp +++ b/kdeaccounts-plugin/kdeaccountsformat.cpp @@ -1,7 +1,7 @@ #include "kdeaccountsformat.h" -#include <qcstring.h> -#include <qfile.h> +#include <tqcstring.h> +#include <tqfile.h> #include <kabc/addressbook.h> #include <kabc/addressee.h> @@ -22,21 +22,21 @@ extern "C" bool KDEAccountsFormat::loadAll( KABC::AddressBook *book, KABC::Resource *resource, - QFile *file ) + TQFile *file ) { if ( !book || !file ) // eh? return false; - QString uuid = "KDEAccountsEntry."; + TQString uuid = "KDEAccountsEntry."; int id = 0; - QByteArray array = file->readAll(); + TQByteArray array = file->readAll(); file->close(); - QByteArray::ConstIterator it = array.begin(); - QByteArray::ConstIterator end = array.end(); - QByteArray::ConstIterator startLine; - QString line; + TQByteArray::ConstIterator it = array.begin(); + TQByteArray::ConstIterator end = array.end(); + TQByteArray::ConstIterator startLine; + TQString line; char eol = '\n'; char delim = ' '; @@ -48,11 +48,11 @@ bool KDEAccountsFormat::loadAll( KABC::AddressBook *book, { } // find eol uint length = it - startLine; - line = QString::fromUtf8( startLine, length ).simplifyWhiteSpace(); + line = TQString::fromUtf8( startLine, length ).simplifyWhiteSpace(); - QString nickName; - QString name; - QString email; + TQString nickName; + TQString name; + TQString email; int firstSpace = line.find( delim ); if ( firstSpace > 0 ) @@ -76,7 +76,7 @@ bool KDEAccountsFormat::loadAll( KABC::AddressBook *book, address.setOrganization("KDE Project"); address.insertCategory("KDE Developer"); address.insertEmail( email ); - address.setUid( uuid + QString::number( id++ )); + address.setUid( uuid + TQString::number( id++ )); address.setResource( resource ); book->insertAddressee( address ); |