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

List:       kde-commits
Subject:    KDE/kdepim/kontact/plugins/kmail
From:       Laurent Montel <montel () kde ! org>
Date:       2010-07-26 12:07:39
Message-ID: 20100726120739.C663DAC86A () svn ! kde ! org
[Download RAW message or body]

SVN commit 1154863 by mlaurent:

Fix statistics


 M  +4 -0      summarywidget.cpp  


--- trunk/KDE/kdepim/kontact/plugins/kmail/summarywidget.cpp #1154862:1154863
@@ -32,9 +32,11 @@
 #include <Akonadi/ChangeRecorder>
 #include <Akonadi/EntityTreeModel>
 #include <Akonadi/CollectionStatistics>
+#include <Akonadi/CollectionFetchScope>
 #include <akonadi_next/entitymodelstatesaver.h>
 #include <akonadi_next/checkableitemproxymodel.h>
 
+
 #include <KConfigGroup>
 #include <KDebug>
 #include <KLocale>
@@ -68,7 +70,9 @@
   mChangeRecorder->setMimeTypeMonitored( "Message/rfc822" );
   mChangeRecorder->fetchCollectionStatistics( true );
   mChangeRecorder->setAllMonitored( true );
+  mChangeRecorder->collectionFetchScope().setIncludeStatistics( true );
 
+
   mModel = new Akonadi::EntityTreeModel( mChangeRecorder, this );
   mModel->setItemPopulationStrategy( Akonadi::EntityTreeModel::NoItemPopulation );
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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