author | zautrix <zautrix> | 2005-06-26 12:08:10 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-26 12:08:10 (UTC) |
commit | d45f07d85ab62205e07089f6e2f41b0d112ca757 (patch) (side-by-side diff) | |
tree | 7497c33233867bcd9d461da44deedca839f61298 /kabc/addresseeview.cpp | |
parent | 9dc21277b3e6080e8bec244ad4e9ec5a0bf90af2 (diff) | |
download | kdepimpi-d45f07d85ab62205e07089f6e2f41b0d112ca757.zip kdepimpi-d45f07d85ab62205e07089f6e2f41b0d112ca757.tar.gz kdepimpi-d45f07d85ab62205e07089f6e2f41b0d112ca757.tar.bz2 |
dr
-rw-r--r-- | kabc/addresseeview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kabc/addresseeview.cpp b/kabc/addresseeview.cpp index 7c70ab1..2691d9a 100644 --- a/kabc/addresseeview.cpp +++ b/kabc/addresseeview.cpp @@ -80,49 +80,49 @@ void AddresseeView::printMe() QPrinter printer; if (!printer.setup() ) return; QPainter p; p.begin ( &printer ); QPaintDeviceMetrics m = QPaintDeviceMetrics ( &printer ); float dx, dy; int wid = (m.width() * 9)/10; dx = (float) wid/(float)contentsWidth (); dy = (float)(m.height()) / (float)contentsHeight (); float scale; // scale to fit the width or height of the paper if ( dx < dy ) scale = dx; else scale = dy; p.translate( m.width()/10,0 ); p.scale( scale, scale ); drawContents ( &p, 0,0, contentsWidth (), contentsHeight () ); p.end(); #endif } void AddresseeView::setSource(const QString& n) { - qDebug("********AddresseeView::setSource %s", n.latin1()); + //qDebug("********AddresseeView::setSource %s", n.latin1()); if ( n == "allDetails" ) { sFullDetailsMode = true; setAddressee( mCurrentContact ); } else if ( n == "notAllDetails" ) { sFullDetailsMode = false; setAddressee( mCurrentContact ); } else if ( n.left( 6 ) == "mailto" ) ExternalAppHandler::instance()->mailToOneContact( n.mid(7) ); else if ( n.left( 7 ) == "phoneto" ) ExternalAppHandler::instance()->callByPhone( n.mid(8) ); else if ( n.left( 5 ) == "faxto" ) ExternalAppHandler::instance()->callByFax( n.mid(6) ); else if ( n.left( 5 ) == "smsto" ) ExternalAppHandler::instance()->callBySMS( n.mid(6) ); else if ( n.left( 7 ) == "pagerto" ) ExternalAppHandler::instance()->callByPager( n.mid(8) ); else if ( n.left( 5 ) == "sipto" ) ExternalAppHandler::instance()->callBySIP( n.mid(6) ); } void AddresseeView::setAddressee( const KABC::Addressee& mAddressee ) { bool kemailAvail = ExternalAppHandler::instance()->isEmailAppAvailable(); |