summaryrefslogtreecommitdiffstats
path: root/kabc/scripts
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
commit560378aaca1784ba19806a0414a32b20c744de39 (patch)
treece0dfd7c3febf2a1adc7603d1019a8be2083c415 /kabc/scripts
parentd4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff)
downloadtdelibs-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 'kabc/scripts')
-rw-r--r--kabc/scripts/addressee.src.cpp42
-rw-r--r--kabc/scripts/addressee.src.h8
2 files changed, 25 insertions, 25 deletions
diff --git a/kabc/scripts/addressee.src.cpp b/kabc/scripts/addressee.src.cpp
index 36c449f19..3665a5417 100644
--- a/kabc/scripts/addressee.src.cpp
+++ b/kabc/scripts/addressee.src.cpp
@@ -225,7 +225,7 @@ void Addressee::setNameFromString( const TQString &s )
TQString emptyStr = "";
AddresseeHelper *helper = AddresseeHelper::self();
- int i = str.find( ',' );
+ int i = str.tqfind( ',' );
if( i < 0 ) {
TQStringList parts = TQStringList::split( spaceStr, str );
int leftOffset = 0;
@@ -233,7 +233,7 @@ void Addressee::setNameFromString( const TQString &s )
TQString suffix;
while ( rightOffset >= 0 ) {
- if ( helper->containsSuffix( parts[ rightOffset ] ) ) {
+ if ( helper->tqcontainsSuffix( parts[ rightOffset ] ) ) {
suffix.prepend(parts[ rightOffset ] + (suffix.isEmpty() ? emptyStr : spaceStr));
rightOffset--;
} else
@@ -246,7 +246,7 @@ void Addressee::setNameFromString( const TQString &s )
TQStringList inclusionList;
for ( int n = 1; (rightOffset - n >= 0) && (n < 4); ++n ) {
- if ( helper->containsPrefix( parts[ rightOffset - n ].lower() ) ) {
+ if ( helper->tqcontainsPrefix( parts[ rightOffset - n ].lower() ) ) {
inclusionList.prepend( parts[ rightOffset - n ] );
} else
break;
@@ -264,7 +264,7 @@ void Addressee::setNameFromString( const TQString &s )
TQString prefix;
while ( leftOffset < rightOffset ) {
- if ( helper->containsTitle( parts[ leftOffset ] ) ) {
+ if ( helper->tqcontainsTitle( parts[ leftOffset ] ) ) {
prefix.append( ( prefix.isEmpty() ? emptyStr : spaceStr) + parts[ leftOffset ] );
leftOffset++;
} else
@@ -295,7 +295,7 @@ void Addressee::setNameFromString( const TQString &s )
TQString suffix;
while ( rightOffset >= 0 ) {
- if ( helper->containsSuffix( parts[ rightOffset ] ) ) {
+ if ( helper->tqcontainsSuffix( parts[ rightOffset ] ) ) {
suffix.prepend(parts[ rightOffset ] + (suffix.isEmpty() ? emptyStr : spaceStr));
rightOffset--;
} else
@@ -303,7 +303,7 @@ void Addressee::setNameFromString( const TQString &s )
}
setSuffix( suffix );
- if ( rightOffset - 1 >= 0 && helper->containsPrefix( parts[ rightOffset - 1 ].lower() ) ) {
+ if ( rightOffset - 1 >= 0 && helper->tqcontainsPrefix( parts[ rightOffset - 1 ].lower() ) ) {
setFamilyName( parts[ rightOffset - 1 ] + spaceStr + parts[ rightOffset ] );
rightOffset--;
} else
@@ -311,7 +311,7 @@ void Addressee::setNameFromString( const TQString &s )
TQString prefix;
while ( leftOffset < rightOffset ) {
- if ( helper->containsTitle( parts[ leftOffset ] ) ) {
+ if ( helper->tqcontainsTitle( parts[ leftOffset ] ) ) {
prefix.append( ( prefix.isEmpty() ? emptyStr : spaceStr) + parts[ leftOffset ] );
leftOffset++;
} else
@@ -332,7 +332,7 @@ void Addressee::setNameFromString( const TQString &s )
TQString prefix;
while ( leftOffset < rightOffset ) {
- if ( helper->containsTitle( parts[ leftOffset ] ) ) {
+ if ( helper->tqcontainsTitle( parts[ leftOffset ] ) ) {
prefix.append( ( prefix.isEmpty() ? emptyStr : spaceStr) + parts[ leftOffset ] );
leftOffset++;
} else
@@ -398,9 +398,9 @@ TQString Addressee::fullEmail( const TQString &email ) const
text = e;
else {
TQRegExp needQuotes( "[^ 0-9A-Za-z\\x0080-\\xFFFF]" );
- if ( realName().find( needQuotes ) != -1 ) {
+ if ( realName().tqfind( needQuotes ) != -1 ) {
TQString name = realName();
- name.replace( "\"", "\\\"" );
+ name.tqreplace( "\"", "\\\"" );
text = "\"" + name + "\" <" + e + ">";
} else
text = realName() + " <" + e + ">";
@@ -417,7 +417,7 @@ void Addressee::insertEmail( const TQString &email, bool preferred )
detach();
mData->empty = false;
- TQStringList::Iterator it = mData->emails.find( email );
+ TQStringList::Iterator it = mData->emails.tqfind( email );
if ( it != mData->emails.end() ) {
if ( !preferred || it == mData->emails.begin() ) return;
@@ -436,7 +436,7 @@ void Addressee::removeEmail( const TQString &email )
{
detach();
- TQStringList::Iterator it = mData->emails.find( email );
+ TQStringList::Iterator it = mData->emails.tqfind( email );
if ( it == mData->emails.end() ) return;
mData->emails.remove( it );
@@ -520,7 +520,7 @@ PhoneNumber::List Addressee::phoneNumbers( int type ) const
return list;
}
-PhoneNumber Addressee::findPhoneNumber( const TQString &id ) const
+PhoneNumber Addressee::tqfindPhoneNumber( const TQString &id ) const
{
PhoneNumber::List::ConstIterator it;
for( it = mData->phoneNumbers.constBegin(); it != mData->phoneNumbers.constEnd(); ++it ) {
@@ -612,7 +612,7 @@ Key::List Addressee::keys( int type, TQString customTypeString ) const
return list;
}
-Key Addressee::findKey( const TQString &id ) const
+Key Addressee::tqfindKey( const TQString &id ) const
{
Key::List::ConstIterator it;
for( it = mData->keys.constBegin(); it != mData->keys.constEnd(); ++it ) {
@@ -739,7 +739,7 @@ Address::List Addressee::addresses( int type ) const
return list;
}
-Address Addressee::findAddress( const TQString &id ) const
+Address Addressee::tqfindAddress( const TQString &id ) const
{
Address::List::ConstIterator it;
for( it = mData->addresses.constBegin(); it != mData->addresses.constEnd(); ++it ) {
@@ -755,7 +755,7 @@ void Addressee::insertCategory( const TQString &c )
detach();
mData->empty = false;
- if ( mData->categories.findIndex( c ) != -1 ) return;
+ if ( mData->categories.tqfindIndex( c ) != -1 ) return;
mData->categories.append( c );
}
@@ -764,7 +764,7 @@ void Addressee::removeCategory( const TQString &c )
{
detach();
- TQStringList::Iterator it = mData->categories.find( c );
+ TQStringList::Iterator it = mData->categories.tqfind( c );
if ( it == mData->categories.end() ) return;
mData->categories.remove( it );
@@ -772,7 +772,7 @@ void Addressee::removeCategory( const TQString &c )
bool Addressee::hasCategory( const TQString &c ) const
{
- return ( mData->categories.findIndex( c ) != -1 );
+ return ( mData->categories.tqfindIndex( c ) != -1 );
}
void Addressee::setCategories( const TQStringList &c )
@@ -832,7 +832,7 @@ TQString Addressee::custom( const TQString &app, const TQString &name ) const
TQStringList::ConstIterator it;
for( it = mData->custom.constBegin(); it != mData->custom.constEnd(); ++it ) {
if ( (*it).startsWith( qualifiedName ) ) {
- value = (*it).mid( (*it).find( ":" ) + 1 );
+ value = (*it).mid( (*it).tqfind( ":" ) + 1 );
break;
}
}
@@ -1104,7 +1104,7 @@ bool listEquals( const TQValueList<L> &list, const TQValueList<L> &pattern )
return false;
for ( uint i = 0; i < list.count(); ++i )
- if ( pattern.find( list[ i ] ) == pattern.end() )
+ if ( pattern.tqfind( list[ i ] ) == pattern.end() )
return false;
return true;
@@ -1120,7 +1120,7 @@ bool emailsEquals( const TQStringList &list, const TQStringList &pattern )
TQStringList::ConstIterator it;
for ( it = list.begin(); it != list.end(); ++it )
- if ( pattern.find( *it ) == pattern.end() )
+ if ( pattern.tqfind( *it ) == pattern.end() )
return false;
return true;
diff --git a/kabc/scripts/addressee.src.h b/kabc/scripts/addressee.src.h
index f87edc5ec..4b01d9963 100644
--- a/kabc/scripts/addressee.src.h
+++ b/kabc/scripts/addressee.src.h
@@ -213,7 +213,7 @@ class KABC_EXPORT Addressee
/**
Return phone number with the given id.
*/
- PhoneNumber findPhoneNumber( const TQString &id ) const;
+ PhoneNumber tqfindPhoneNumber( const TQString &id ) const;
/**
Insert a key. If a key with the same id already exists
@@ -257,7 +257,7 @@ class KABC_EXPORT Addressee
/**
Return key with the given id.
*/
- Key findKey( const TQString &id ) const;
+ Key tqfindKey( const TQString &id ) const;
/**
Insert an address. If an address with the same id already exists
@@ -289,7 +289,7 @@ class KABC_EXPORT Addressee
/**
Return address with the given id.
*/
- Address findAddress( const TQString &id ) const;
+ Address tqfindAddress( const TQString &id ) const;
/**
Insert category. If the category already exists it is not duplicated.
@@ -319,7 +319,7 @@ class KABC_EXPORT Addressee
/**
Insert custom entry. The entry is identified by the name of the inserting
application and a unique name. If an entry with the given app and name
- already exists its value is replaced with the new given value.
+ already exists its value is tqreplaced with the new given value.
An empty value isn't allowed (nothing happens if this is called with
any of the three arguments being empty)