From f4fae92b6768541e2952173c3d4b09040f95bf7e Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 16 Feb 2011 20:17:18 +0000 Subject: Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkdepim/addresseeview.cpp | 74 ++++++++++++++++++++++----------------------- 1 file changed, 37 insertions(+), 37 deletions(-) (limited to 'libkdepim/addresseeview.cpp') diff --git a/libkdepim/addresseeview.cpp b/libkdepim/addresseeview.cpp index 89033482..d5b3e6e2 100644 --- a/libkdepim/addresseeview.cpp +++ b/libkdepim/addresseeview.cpp @@ -161,17 +161,17 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr // the global background color). // TQString backgroundColor = KGlobalSettings::alternateBackgroundColor().name(); - TQString cellStyle = TQString::fromLatin1( + TQString cellStyle = TQString::tqfromLatin1( "style=\"" "padding-right: 2px; " "border-right: #000 dashed 1px; " "background: %1;\"").arg(backgroundColor); TQString backgroundColor2 = KGlobalSettings::baseColor().name(); - TQString cellStyle2 = TQString::fromLatin1( + TQString cellStyle2 = TQString::tqfromLatin1( "style=\"" "padding-left: 2px; " "background: %1;\"").arg(backgroundColor2); - TQString tableStyle = TQString::fromLatin1( + TQString tableStyle = TQString::tqfromLatin1( "style=\"" "border: solid 1px; " "margin: 0em;\""); @@ -179,17 +179,17 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr // We'll be building a table to display the vCard in. // Each row of the table will be built using this string for its HTML. // - TQString rowFmtStr = TQString::fromLatin1( + TQString rowFmtStr = TQString::tqfromLatin1( "" "" // Close tag "%1" "" "" // Close tag "%2" "" @@ -228,9 +228,9 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr TQString url; if ( (*phoneIt).type() & KABC::PhoneNumber::Fax ) - url = TQString::fromLatin1( "fax:" ) + number; + url = TQString::tqfromLatin1( "fax:" ) + number; else - url = TQString::fromLatin1( "phone:" ) + number; + url = TQString::tqfromLatin1( "phone:" ) + number; if ( linkMask & PhoneLinks ) { TQString smsURL; @@ -238,11 +238,11 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr smsURL = TQString(" (%2)" ).arg( number ).arg( i18n( "SMS") ); dynamicPart += rowFmtStr - .arg( (*phoneIt).typeLabel().replace( " ", " " ) ) - .arg( TQString::fromLatin1( "%2%3" ).arg( url ).arg( number ).arg( smsURL ) ); + .arg( (*phoneIt).typeLabel().tqreplace( " ", " " ) ) + .arg( TQString::tqfromLatin1( "%2%3" ).arg( url ).arg( number ).arg( smsURL ) ); } else { dynamicPart += rowFmtStr - .arg( (*phoneIt).typeLabel().replace( " ", " " ) ) + .arg( (*phoneIt).typeLabel().tqreplace( " ", " " ) ) .arg( number ); } } @@ -258,7 +258,7 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr if ( linkMask & EmailLinks ) { dynamicPart += rowFmtStr.arg( type ) - .arg( TQString::fromLatin1( "%2" ) + .arg( TQString::tqfromLatin1( "%2" ) .arg( fullEmail, TQStyleSheet::escape( *emailIt ) ) ); } else { dynamicPart += rowFmtStr.arg( type ).arg( *emailIt ); @@ -296,7 +296,7 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr TQString formattedAddress; formattedAddress = TQStyleSheet::escape( (*addrIt).formattedAddress().stripWhiteSpace() ); - formattedAddress = formattedAddress.replace( '\n', "
" ); + formattedAddress = formattedAddress.tqreplace( '\n', "
" ); TQString link = "" + formattedAddress + ""; @@ -312,7 +312,7 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr } } else { TQString link = "" + - (*addrIt).label().replace( '\n', "
" ) + "
"; + (*addrIt).label().tqreplace( '\n', "
" ) + ""; if ( linkMask & AddressLinks ) { dynamicPart += rowFmtStr @@ -321,7 +321,7 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr } else { dynamicPart += rowFmtStr .arg( KABC::Address::typeLabel( (*addrIt).type() ) ) - .arg( (*addrIt).label().replace( '\n', "
" ) ); + .arg( (*addrIt).label().tqreplace( '\n', "
" ) ); } } } @@ -333,7 +333,7 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr // the data afterwards (keeps us safe from possible % signs // in either one). notes = TQStyleSheet::escape( addr.note() ); - notes = rowFmtStr.arg( i18n( "Notes" ) ).arg( notes.replace( '\n', "
" ) ) ; + notes = rowFmtStr.arg( i18n( "Notes" ) ).arg( notes.tqreplace( '\n', "
" ) ) ; } TQString customData; @@ -393,7 +393,7 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr // set image source to either a TQMimeSourceFactory key or a data:/ URL TQString imgSrc; if ( internalLoading ) { - imgSrc = TQString::fromLatin1( "im_status_%1_image").arg( addr.uid() ); + imgSrc = TQString::tqfromLatin1( "im_status_%1_image").arg( addr.uid() ); TQMimeSourceFactory::defaultFactory()->setPixmap( imgSrc, proxy->presenceIcon( addr.uid() ) ); } else imgSrc = pixmapAsDataUrl( proxy->presenceIcon( addr.uid() ) ); @@ -401,9 +401,9 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr // make the status a link, if required TQString imStatus; if ( linkMask & IMLinks ) - imStatus = TQString::fromLatin1( " (%2)" ); + imStatus = TQString::tqfromLatin1( " (%2)" ); else - imStatus = TQString::fromLatin1( " (%2)" ); + imStatus = TQString::tqfromLatin1( " (%2)" ); // append our status to the rest of the dynamic part of the addressee dynamicPart += rowFmtStr @@ -419,53 +419,53 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr // @STYLE@ - construct the string by parts, substituting in // the styles first. There are lots of appends, but we need to // do it this way to avoid cases where the substituted string - // contains %1 and the like. + // tqcontains %1 and the like. // - TQString strAddr = TQString::fromLatin1( + TQString strAddr = TQString::tqfromLatin1( "
" "" "").arg(tableStyle); - strAddr.append( TQString::fromLatin1( + strAddr.append( TQString::tqfromLatin1( "") .arg( image ) ); - strAddr.append( TQString::fromLatin1( + strAddr.append( TQString::tqfromLatin1( "" // name "") .arg( name ) ); - strAddr.append( TQString::fromLatin1( + strAddr.append( TQString::tqfromLatin1( "" "" // role "") .arg( role ) ); - strAddr.append( TQString::fromLatin1( + strAddr.append( TQString::tqfromLatin1( "" "" // organization "") .arg( organization ) ); - strAddr.append( TQString::fromLatin1( + strAddr.append( TQString::tqfromLatin1( "") .arg( cellStyle2 ) ); strAddr.append( dynamicPart ); strAddr.append( notes ); strAddr.append( customData ); - strAddr.append( TQString::fromLatin1( "
") .arg( cellStyle ) ); - strAddr.append( TQString::fromLatin1( + strAddr.append( TQString::tqfromLatin1( "" // image "") .arg( cellStyle2 ) ); - strAddr.append( TQString::fromLatin1( + strAddr.append( TQString::tqfromLatin1( "%2
") .arg( cellStyle2 ) ); - strAddr.append( TQString::fromLatin1( + strAddr.append( TQString::tqfromLatin1( "%3
") .arg( cellStyle2 ) ); - strAddr.append( TQString::fromLatin1( + strAddr.append( TQString::tqfromLatin1( "%4
") .arg( cellStyle ) ); - strAddr.append( TQString::fromLatin1( + strAddr.append( TQString::tqfromLatin1( "  
\n" ) ); + strAddr.append( TQString::tqfromLatin1( "\n" ) ); if ( addr.resource() ) { TQString addrBookName = addr.resource()->resourceName(); @@ -526,7 +526,7 @@ void AddresseeView::updateView() TQString strAddr = vCardAsHTML( mAddressee, mKIMProxy, (LinkMask)mLinkMask, true, (FieldMask)fieldMask ); - strAddr = TQString::fromLatin1( + strAddr = TQString::tqfromLatin1( "" "" // text and background color "%3" // dynamic part @@ -591,7 +591,7 @@ void AddresseeView::phoneNumberClicked( const TQString &number ) return; } - commandLine.replace( "%N", number ); + commandLine.tqreplace( "%N", number ); KRun::runCommand( commandLine ); } @@ -623,8 +623,8 @@ void AddresseeView::sendSMS( const TQString &number, const TQString &text ) *stream << text; file.close(); - commandLine.replace( "%N", number ); - commandLine.replace( "%F", file.name() ); + commandLine.tqreplace( "%N", number ); + commandLine.tqreplace( "%F", file.name() ); KRun::runCommand( commandLine ); } @@ -640,7 +640,7 @@ void AddresseeView::faxNumberClicked( const TQString &number ) return; } - commandLine.replace( "%N", number ); + commandLine.tqreplace( "%N", number ); KRun::runCommand( commandLine ); } -- cgit v1.2.3