[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdepim/kaddressbook/views
From: Will Stephenson <lists () stevello ! free-online ! co ! uk>
Date: 2005-02-09 12:02:53
Message-ID: 20050209120253.1160E1B478 () office ! kde ! org
[Download RAW message or body]
CVS commit by wstephens:
use kimproxy more efficiently
M +5 -3 contactlistview.cpp 1.13
M +2 -2 kaddressbooktableview.h 1.12
--- kdepim/kaddressbook/views/contactlistview.cpp #1.12:1.13
@@ -33,5 +33,4 @@
#include <klocale.h>
#include <kglobalsettings.h>
-#include <kiconloader.h>
#include <kdebug.h>
#include <kconfig.h>
@@ -157,5 +156,5 @@ ContactListViewItem::ContactListViewItem
{
if ( mIMProxy )
- mHasIM = ( !( mIMProxy->allContacts().find( mAddressee.uid() ) == mIMProxy->allContacts().end() ) );
+ mHasIM = mIMProxy->isPresent( mAddressee.uid() );
else
mHasIM = false;
@@ -224,6 +223,9 @@ void ContactListViewItem::refresh()
int i = 0;
- if ( mHasIM )
+ // don't show unknown presence, it's not interesting
+ if ( mHasIM && mIMProxy->presenceNumeric( mAddressee.uid() ) > 0 )
setPixmap( parentListView->imColumn(), mIMProxy->presenceIcon( mAddressee.uid() ) );
+ else
+ setPixmap( parentListView->imColumn(), QPixmap() );
KABC::Field::List::ConstIterator it;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic