diff options
Diffstat (limited to 'libkdepim/addresseeemailselection.cpp')
-rw-r--r-- | libkdepim/addresseeemailselection.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/libkdepim/addresseeemailselection.cpp b/libkdepim/addresseeemailselection.cpp index d5a8c02a3..f5d840c9c 100644 --- a/libkdepim/addresseeemailselection.cpp +++ b/libkdepim/addresseeemailselection.cpp @@ -40,7 +40,7 @@ uint AddresseeEmailSelection::fieldCount() const return 3; } -QString AddresseeEmailSelection::fieldTitle( uint index ) const +TQString AddresseeEmailSelection::fieldTitle( uint index ) const { switch ( index ) { case 0: @@ -53,21 +53,21 @@ QString AddresseeEmailSelection::fieldTitle( uint index ) const return i18n( "Bcc" ); break; default: - return QString::null; + return TQString::null; } } -QStringList AddresseeEmailSelection::to() const +TQStringList AddresseeEmailSelection::to() const { return mToEmailList; } -QStringList AddresseeEmailSelection::cc() const +TQStringList AddresseeEmailSelection::cc() const { return mCcEmailList; } -QStringList AddresseeEmailSelection::bcc() const +TQStringList AddresseeEmailSelection::bcc() const { return mBccEmailList; } @@ -87,32 +87,32 @@ KABC::Addressee::List AddresseeEmailSelection::bccAddresses() const return mBccAddresseeList; } -QStringList AddresseeEmailSelection::toDistributionLists() const +TQStringList AddresseeEmailSelection::toDistributionLists() const { return mToDistributionList; } -QStringList AddresseeEmailSelection::ccDistributionLists() const +TQStringList AddresseeEmailSelection::ccDistributionLists() const { return mCcDistributionList; } -QStringList AddresseeEmailSelection::bccDistributionLists() const +TQStringList AddresseeEmailSelection::bccDistributionLists() const { return mBccDistributionList; } -void AddresseeEmailSelection::setSelectedTo( const QStringList &emails ) +void AddresseeEmailSelection::setSelectedTo( const TQStringList &emails ) { setSelectedItem( 0, emails ); } -void AddresseeEmailSelection::setSelectedCC( const QStringList &emails ) +void AddresseeEmailSelection::setSelectedCC( const TQStringList &emails ) { setSelectedItem( 1, emails ); } -void AddresseeEmailSelection::setSelectedBCC( const QStringList &emails ) +void AddresseeEmailSelection::setSelectedBCC( const TQStringList &emails ) { setSelectedItem( 2, emails ); } @@ -123,12 +123,12 @@ uint AddresseeEmailSelection::itemCount( const KABC::Addressee &addressee ) cons return addressee.emails().count(); } -QString AddresseeEmailSelection::itemText( const KABC::Addressee &addressee, uint index ) const +TQString AddresseeEmailSelection::itemText( const KABC::Addressee &addressee, uint index ) const { return addressee.formattedName() + " " + email( addressee, index ); } -QPixmap AddresseeEmailSelection::itemIcon( const KABC::Addressee &addressee, uint ) const +TQPixmap AddresseeEmailSelection::itemIcon( const KABC::Addressee &addressee, uint ) const { if ( !addressee.photo().data().isNull() ) return addressee.photo().data().smoothScale( 16, 16 ); @@ -141,24 +141,24 @@ bool AddresseeEmailSelection::itemEnabled( const KABC::Addressee &addressee, uin return addressee.emails().count() != 0; } -bool AddresseeEmailSelection::itemMatches( const KABC::Addressee &addressee, uint index, const QString &pattern ) const +bool AddresseeEmailSelection::itemMatches( const KABC::Addressee &addressee, uint index, const TQString &pattern ) const { return addressee.formattedName().startsWith( pattern, false ) || email( addressee, index ).startsWith( pattern, false ); } -bool AddresseeEmailSelection::itemEquals( const KABC::Addressee &addressee, uint index, const QString &pattern ) const +bool AddresseeEmailSelection::itemEquals( const KABC::Addressee &addressee, uint index, const TQString &pattern ) const { return (pattern == addressee.formattedName() + " " + email( addressee, index )) || (addressee.emails().contains( pattern )); } -QString AddresseeEmailSelection::distributionListText( const KABC::DistributionList *distributionList ) const +TQString AddresseeEmailSelection::distributionListText( const KABC::DistributionList *distributionList ) const { return distributionList->name(); } -QPixmap AddresseeEmailSelection::distributionListIcon( const KABC::DistributionList* ) const +TQPixmap AddresseeEmailSelection::distributionListIcon( const KABC::DistributionList* ) const { return KGlobal::iconLoader()->loadIcon( "kdmconfig", KIcon::Small ); } @@ -169,7 +169,7 @@ bool AddresseeEmailSelection::distributionListEnabled( const KABC::DistributionL } bool AddresseeEmailSelection::distributionListMatches( const KABC::DistributionList *distributionList, - const QString &pattern ) const + const TQString &pattern ) const { // check whether the name of the distribution list matches the pattern or one of its entries. bool ok = distributionList->name().startsWith( pattern, false ); @@ -190,12 +190,12 @@ uint AddresseeEmailSelection::addressBookCount() const return 1; } -QString AddresseeEmailSelection::addressBookTitle( uint index ) const +TQString AddresseeEmailSelection::addressBookTitle( uint index ) const { if ( index == 0 ) return i18n( "Recent Addresses" ); else - return QString::null; + return TQString::null; } KABC::Addressee::List AddresseeEmailSelection::addressBookContent( uint index ) const @@ -208,14 +208,14 @@ KABC::Addressee::List AddresseeEmailSelection::addressBookContent( uint index ) } } -QString AddresseeEmailSelection::email( const KABC::Addressee &addressee, uint index ) const +TQString AddresseeEmailSelection::email( const KABC::Addressee &addressee, uint index ) const { return addressee.emails()[ index ]; } -void AddresseeEmailSelection::setSelectedItem( uint fieldIndex, const QStringList &emails ) +void AddresseeEmailSelection::setSelectedItem( uint fieldIndex, const TQStringList &emails ) { - QStringList::ConstIterator it; + TQStringList::ConstIterator it; for ( it = emails.begin(); it != emails.end(); ++it ) { KABC::Addressee addr; addr.insertEmail( *it, true ); |