From b70d9695bb6a2d567b75965c0530792ad90c84a3 Mon Sep 17 00:00:00 2001 From: zautrix Date: Tue, 29 Mar 2005 18:35:10 +0000 Subject: icons --- (limited to 'kabc') diff --git a/kabc/addresseeview.cpp b/kabc/addresseeview.cpp index e85991e..8f104e0 100644 --- a/kabc/addresseeview.cpp +++ b/kabc/addresseeview.cpp @@ -252,16 +252,22 @@ void AddresseeView::setAddressee( const KABC::Addressee& mAddressee ) picAvailUrl = !picture.isIntern() && QFile::exists(picture.url() ); } if ( picAvailUrl || picAvailintern || QApplication::desktop()->width() > 320 ) { + picString = ""; if ( picAvailintern ) { QMimeSourceFactory::defaultFactory()->setImage( "myimage", picture.data() ); } else { if ( picAvailUrl ) { QMimeSourceFactory::defaultFactory()->setPixmap( "myimage", QPixmap( picture.url() )); } else { - QMimeSourceFactory::defaultFactory()->setPixmap( "myimage", KGlobal::iconLoader()->loadIcon( "package_toys", KIcon::Desktop, 128 ) ); + static bool setDefaultImage = false; + if ( !setDefaultImage ) { + qDebug("Setting default pixmap "); + QMimeSourceFactory::defaultFactory()->setPixmap( "defaultPenguin", KGlobal::iconLoader()->loadIcon( "package_toys", KIcon::Desktop, 128 ) ); + setDefaultImage = true; + } + picString = ""; } } - picString = ""; mText = QString::fromLatin1( "" "" // text and background color -- cgit v0.9.0.2