summaryrefslogtreecommitdiffstats
path: root/kaddressbook/xxport/eudora_xxport.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kaddressbook/xxport/eudora_xxport.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaddressbook/xxport/eudora_xxport.cpp')
-rw-r--r--kaddressbook/xxport/eudora_xxport.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kaddressbook/xxport/eudora_xxport.cpp b/kaddressbook/xxport/eudora_xxport.cpp
index d31cd1115..ca804fe30 100644
--- a/kaddressbook/xxport/eudora_xxport.cpp
+++ b/kaddressbook/xxport/eudora_xxport.cpp
@@ -17,8 +17,8 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
As a special exception, permission is given to link this program
- with any edition of Qt, and distribute the resulting executable,
- without including the source code for Qt in the source distribution.
+ with any edition of TQt, and distribute the resulting executable,
+ without including the source code for TQt in the source distribution.
*/
#include <tqfile.h>
@@ -38,8 +38,8 @@
K_EXPORT_KADDRESSBOOK_XXFILTER( libkaddrbk_eudora_xxport, EudoraXXPort )
-EudoraXXPort::EudoraXXPort( KABC::AddressBook *ab, TQWidget *parent, const char *name )
- : KAB::XXPort( ab, parent, name )
+EudoraXXPort::EudoraXXPort( KABC::AddressBook *ab, TQWidget *tqparent, const char *name )
+ : KAB::XXPort( ab, tqparent, name )
{
createImportAction( i18n( "Import Eudora Addressbook..." ) );
}
@@ -124,22 +124,22 @@ TQString EudoraXXPort::key( const TQString& line) const
{
int e;
TQString result;
- int b = line.find( '\"', 0 );
+ int b = line.tqfind( '\"', 0 );
if ( b == -1 ) {
- b = line.find( ' ' );
+ b = line.tqfind( ' ' );
if ( b == -1 )
return result;
b++;
- e = line.find( ' ', b );
+ e = line.tqfind( ' ', b );
result = line.mid( b, e - b );
return result;
}
b++;
- e = line.find( '\"', b );
+ e = line.tqfind( '\"', b );
if ( e == -1 )
return result;
@@ -191,14 +191,14 @@ TQString EudoraXXPort::get( const TQString& line, const TQString& key ) const
uint i;
// Find formatted key, return on error
- b = line.find( fd );
+ b = line.tqfind( fd );
if ( b == -1 )
- return TQString::null;
+ return TQString();
b += fd.length();
- e = line.find( '>', b );
+ e = line.tqfind( '>', b );
if ( e == -1 )
- return TQString::null;
+ return TQString();
e--;
TQString result = line.mid( b, e - b + 1 );