author | zautrix <zautrix> | 2005-06-03 13:37:47 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-03 13:37:47 (UTC) |
commit | 7aa43257ffb63e772342f24c1f7945e285171ee6 (patch) (side-by-side diff) | |
tree | 7d68896cbbd5ae699bce7905e17824939022a488 /kabc | |
parent | f0554322b2f27e1fa60dc79a5d76ef0741bf3423 (diff) | |
download | kdepimpi-7aa43257ffb63e772342f24c1f7945e285171ee6.zip kdepimpi-7aa43257ffb63e772342f24c1f7945e285171ee6.tar.gz kdepimpi-7aa43257ffb63e772342f24c1f7945e285171ee6.tar.bz2 |
export kapi fix
-rw-r--r-- | kabc/addresseeview.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kabc/addresseeview.cpp b/kabc/addresseeview.cpp index 9118c3d..667a5e2 100644 --- a/kabc/addresseeview.cpp +++ b/kabc/addresseeview.cpp @@ -34,24 +34,25 @@ #include <qlabel.h> #include <qwidget.h> #include <qlayout.h> #include <qapplication.h> #include <qpushbutton.h> #ifdef DESKTOP_VERSION #include <qpaintdevicemetrics.h> #include <qprinter.h> #include <qpainter.h> #endif +#include <qstylesheet.h> #include "externalapphandler.h" #include <kabc/addresseeview.h> //US #ifndef DESKTOP_VERSION //US #include <qtopia/qcopenvelope_qws.h> //US #include <qpe/qpeapplication.h> //US #endif //US static int kphoneInstalled = 0; using namespace KABC; @@ -61,24 +62,25 @@ AddresseeView::AddresseeView( QWidget *parent, const char *name ) { //US setWrapPolicy( QTextEdit::AtWordBoundary ); setLinkUnderline( false ); // setVScrollBarMode( QScrollView::AlwaysOff ); //setHScrollBarMode( QScrollView::AlwaysOff ); //US QStyleSheet *sheet = styleSheet(); //US QStyleSheetItem *link = sheet->item( "a" ); //US link->setColor( KGlobalSettings::linkColor() ); + } void AddresseeView::printMe() { #ifdef DESKTOP_VERSION QPrinter printer; if (!printer.setup() ) return; QPainter p; p.begin ( &printer ); QPaintDeviceMetrics m = QPaintDeviceMetrics ( &printer ); float dx, dy; int wid = (m.width() * 9)/10; @@ -116,26 +118,30 @@ void AddresseeView::setSource(const QString& n) } void AddresseeView::setAddressee( const KABC::Addressee& mAddressee ) { bool kemailAvail = ExternalAppHandler::instance()->isEmailAppAvailable(); // mAddressee = addr; // clear view //setText( QString::null ); if ( mAddressee.isEmpty() ) { setText( QString::null); return; } +#if 0 QString name = ( mAddressee.assembledName().isEmpty() ? mAddressee.formattedName() : mAddressee.assembledName() ); +#endif + + QString name = mAddressee.realName(); QString dynamicPart; dynamicPart += getPhoneNumbers( mAddressee.phoneNumbers(),true ); QStringList emails = mAddressee.emails(); QStringList::ConstIterator emailIt; QString type = i18n( "Email" ); emailIt = emails.begin(); if ( emailIt != emails.end() ) { if ( kemailAvail ) { dynamicPart += QString( "<tr><td align=\"right\"><b>%1</b></td>" |