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

List:       kde-commits
Subject:    extragear/pim/mailody/src
From:       Tom Albers <toma () kde ! org>
Date:       2009-10-24 21:34:18
Message-ID: 1256420058.426033.10080.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1039894 by toma:

Add a collectiondelegate so we don't show 4 columns anymore, but just one with the \
unread count behind the folder name. The rest of the data is in the tooltip.


 M  +1 -0      CMakeLists.txt  
 A             collectiondelegate.cpp   [License: GPL (v2+)]
 A             collectiondelegate.h   [License: GPL (v2+)]
 M  +5 -1      mainwindow.cpp  


--- trunk/extragear/pim/mailody/src/CMakeLists.txt #1039893:1039894
@@ -18,6 +18,7 @@
   tabwidget.cpp
   attachmentwidget.cpp
   contactcreation.cpp
+  collectiondelegate.cpp
   headerdelegate.cpp
   headerwidget.cpp
   sendmessage.cpp
--- trunk/extragear/pim/mailody/src/mainwindow.cpp #1039893:1039894
@@ -20,6 +20,7 @@
 // Own
 #include "mainwindow.h"
 
+#include "collectiondelegate.h"
 #include "composer.h"
 #include "flagmodifyjob.h"
 #include "global.h"
@@ -295,7 +296,7 @@
 
     StatisticsProxyModel *statisticsProxyModel = new StatisticsProxyModel( this );
     statisticsProxyModel->setToolTipEnabled( true );
-    statisticsProxyModel->setExtraColumnsEnabled( true ); // TODO: make a delegate.
+    statisticsProxyModel->setExtraColumnsEnabled( false );
     statisticsProxyModel->setSourceModel( collectionFilter );
 
     QSortFilterProxyModel *sortModel = new QSortFilterProxyModel( this );
@@ -312,6 +313,9 @@
     FavoriteCollectionsModel *favoritesModel = new FavoriteCollectionsModel( \
collectionModel, KGlobal::config()->group( "FavoriteCollectionModel" ), this );  \
m_favoritesView->setModel( favoritesModel );  
+    CollectionDelegate* delegate = new CollectionDelegate( m_collectionView );
+    m_collectionView->setItemDelegate( delegate );
+
     StandardActionManager* stdActionManager = new StandardActionManager( \
m_actionCollection, this );  
     //probably needsa lot more, but you have to start somewhere...


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

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