summaryrefslogtreecommitdiffstats
path: root/libkdepim/addresseeview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdepim/addresseeview.cpp')
-rw-r--r--libkdepim/addresseeview.cpp74
1 files changed, 37 insertions, 37 deletions
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(
"<tr>"
"<td align=\"right\" valign=\"top\" width=\"30%\" "); // Tag unclosed
rowFmtStr.append( cellStyle );
- rowFmtStr.append( TQString::fromLatin1(
+ rowFmtStr.append( TQString::tqfromLatin1(
">" // Close tag
"<b>%1</b>"
"</td>"
"<td align=\"left\" valign=\"top\" width=\"70%\" ") ); // Tag unclosed
rowFmtStr.append( cellStyle2 );
- rowFmtStr.append( TQString::fromLatin1(
+ rowFmtStr.append( TQString::tqfromLatin1(
">" // Close tag
"%2"
"</td>"
@@ -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(" (<a href=\"sms:%1\">%2</a>)" ).arg( number ).arg( i18n( "SMS") );
dynamicPart += rowFmtStr
- .arg( (*phoneIt).typeLabel().replace( " ", "&nbsp;" ) )
- .arg( TQString::fromLatin1( "<a href=\"%1\">%2</a>%3" ).arg( url ).arg( number ).arg( smsURL ) );
+ .arg( (*phoneIt).typeLabel().tqreplace( " ", "&nbsp;" ) )
+ .arg( TQString::tqfromLatin1( "<a href=\"%1\">%2</a>%3" ).arg( url ).arg( number ).arg( smsURL ) );
} else {
dynamicPart += rowFmtStr
- .arg( (*phoneIt).typeLabel().replace( " ", "&nbsp;" ) )
+ .arg( (*phoneIt).typeLabel().tqreplace( " ", "&nbsp;" ) )
.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( "<a href=\"mailto:%1\">%2</a>" )
+ .arg( TQString::tqfromLatin1( "<a href=\"mailto:%1\">%2</a>" )
.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', "<br>" );
+ formattedAddress = formattedAddress.tqreplace( '\n', "<br>" );
TQString link = "<a href=\"addr:" + (*addrIt).id() + "\">" +
formattedAddress + "</a>";
@@ -312,7 +312,7 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr
}
} else {
TQString link = "<a href=\"addr:" + (*addrIt).id() + "\">" +
- (*addrIt).label().replace( '\n', "<br>" ) + "</a>";
+ (*addrIt).label().tqreplace( '\n', "<br>" ) + "</a>";
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', "<br>" ) );
+ .arg( (*addrIt).label().tqreplace( '\n', "<br>" ) );
}
}
}
@@ -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', "<br>" ) ) ;
+ notes = rowFmtStr.arg( i18n( "Notes" ) ).arg( notes.tqreplace( '\n', "<br>" ) ) ;
}
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( "<a href=\"im:\"><img src=\"%1\"> (%2)</a>" );
+ imStatus = TQString::tqfromLatin1( "<a href=\"im:\"><img src=\"%1\"> (%2)</a>" );
else
- imStatus = TQString::fromLatin1( "<img src=\"%1\"> (%2)" );
+ imStatus = TQString::tqfromLatin1( "<img src=\"%1\"> (%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(
"<div align=\"center\">"
"<table cellpadding=\"1\" cellspacing=\"0\" %1>"
"<tr>").arg(tableStyle);
- strAddr.append( TQString::fromLatin1(
+ strAddr.append( TQString::tqfromLatin1(
"<td align=\"right\" valign=\"top\" width=\"30%\" rowspan=\"3\" %2>")
.arg( cellStyle ) );
- strAddr.append( TQString::fromLatin1(
+ strAddr.append( TQString::tqfromLatin1(
"<img src=\"%1\" width=\"50\" vspace=\"1\">" // image
"</td>")
.arg( image ) );
- strAddr.append( TQString::fromLatin1(
+ strAddr.append( TQString::tqfromLatin1(
"<td align=\"left\" width=\"70%\" %2>")
.arg( cellStyle2 ) );
- strAddr.append( TQString::fromLatin1(
+ strAddr.append( TQString::tqfromLatin1(
"<font size=\"+2\"><b>%2</b></font></td>" // name
"</tr>")
.arg( name ) );
- strAddr.append( TQString::fromLatin1(
+ strAddr.append( TQString::tqfromLatin1(
"<tr>"
"<td align=\"left\" width=\"70%\" %2>")
.arg( cellStyle2 ) );
- strAddr.append( TQString::fromLatin1(
+ strAddr.append( TQString::tqfromLatin1(
"%3</td>" // role
"</tr>")
.arg( role ) );
- strAddr.append( TQString::fromLatin1(
+ strAddr.append( TQString::tqfromLatin1(
"<tr>"
"<td align=\"left\" width=\"70%\" %2>")
.arg( cellStyle2 ) );
- strAddr.append( TQString::fromLatin1(
+ strAddr.append( TQString::tqfromLatin1(
"%4</td>" // organization
"</tr>")
.arg( organization ) );
- strAddr.append( TQString::fromLatin1(
+ strAddr.append( TQString::tqfromLatin1(
"<tr><td %2>")
.arg( cellStyle ) );
- strAddr.append( TQString::fromLatin1(
+ strAddr.append( TQString::tqfromLatin1(
"&nbsp;</td><td %2>&nbsp;</td></tr>")
.arg( cellStyle2 ) );
strAddr.append( dynamicPart );
strAddr.append( notes );
strAddr.append( customData );
- strAddr.append( TQString::fromLatin1( "</table></div>\n" ) );
+ strAddr.append( TQString::tqfromLatin1( "</table></div>\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(
"<html>"
"<body text=\"%1\" bgcolor=\"%2\">" // 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 );
}