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

List:       kde-commits
Subject:    KDE/kdepim/akonadi/akonadiconsole
From:       Kevin Ottens <ervin () kde ! org>
Date:       2009-10-14 14:34:34
Message-ID: 1255530874.173688.4893.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1035205 by ervin:

Use the quota color proxy in akonadiconsole.


 M  +6 -1      browserwidget.cpp  


--- trunk/KDE/kdepim/akonadi/akonadiconsole/browserwidget.cpp #1035204:1035205
@@ -43,6 +43,7 @@
 #include <akonadi/entitytreeviewstatesaver.h>
 #include <akonadi/favoritecollectionsmodel.h>
 #include <akonadi/favoritecollectionsview.h>
+#include <akonadi_next/quotacolorproxymodel.h>
 #include <akonadi/statisticsproxymodel.h>
 #include <akonadi/statisticstooltipproxymodel.h>
 
@@ -138,10 +139,14 @@
   StatisticsProxyModel *statisticsProxyModel = new StatisticsProxyModel( this );
   statisticsProxyModel->setSourceModel( statisticsToolTipProxyModel );
 
+  QuotaColorProxyModel *quotaProxyModel = new QuotaColorProxyModel( this );
+  quotaProxyModel->setWarningThreshold( 80.0 );
+  quotaProxyModel->setSourceModel( statisticsProxyModel );
+
   QSortFilterProxyModel *sortModel = new QSortFilterProxyModel( this );
   sortModel->setDynamicSortFilter( true );
   sortModel->setSortCaseSensitivity( Qt::CaseInsensitive );
-  sortModel->setSourceModel( statisticsProxyModel );
+  sortModel->setSourceModel( quotaProxyModel );
 
   mCollectionView->setModel( sortModel );
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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