[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdenetwork/kopete/kopete/contactlist
From:       Roman Jarosz <kedgedev () gmail ! com>
Date:       2010-07-06 17:24:25
Message-ID: 20100706172425.705DDAC8A8 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1146807 by rjarosz:

Show all protocol icons during search.



 M  +8 -0      kopeteitemdelegate.cpp  


--- trunk/KDE/kdenetwork/kopete/kopete/contactlist/kopeteitemdelegate.cpp #1146806:1146807
@@ -185,6 +185,14 @@
 	if ( Kopete::AppearanceSettings::self()->showOfflineUsers() )
 		return contacts;
 
+	QAbstractItemView* itemView = qobject_cast<QAbstractItemView*>(parent());
+	if ( itemView )
+	{
+		QSortFilterProxyModel* proxyModel = qobject_cast<QSortFilterProxyModel*>(itemView->model());
+		if ( proxyModel && !proxyModel->filterRegExp().isEmpty() )
+			return contacts;
+	}
+
 	QList<Kopete::Contact*> filtered;
 
 	foreach( Kopete::Contact *contact, contacts )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic