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

List:       kde-commits
Subject:    KDE/kdepimlibs/akonadi
From:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2008-03-21 12:12:24
Message-ID: 1206101544.210620.19005.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 788349 by krake:

Remove implicit collection sorting here as well


 M  +1 -7      collectionview.cpp  
 M  +0 -1      collectionview.h  


--- trunk/KDE/kdepimlibs/akonadi/collectionview.cpp #788348:788349
@@ -36,7 +36,6 @@
 #include <QtGui/QDragMoveEvent>
 #include <QtGui/QHeaderView>
 #include <QtGui/QMenu>
-#include <QtGui/QSortFilterProxyModel>
 
 using namespace Akonadi;
 
@@ -55,7 +54,6 @@
     bool hasParent( const QModelIndex& idx, int parentId );
 
     CollectionView *mParent;
-    QSortFilterProxyModel *filterModel;
     QModelIndex dragOverIndex;
     QTimer dragExpandTimer;
 
@@ -109,9 +107,6 @@
     d( new Private( this ) )
 {
   d->xmlGuiWindow = xmlGuiWindow;
-  d->filterModel = new QSortFilterProxyModel( this );
-  d->filterModel->setDynamicSortFilter( true );
-  d->filterModel->setSortCaseSensitivity( Qt::CaseInsensitive );
 
   header()->setClickable( true );
   header()->setStretchLastSection( false );
@@ -137,8 +132,7 @@
 
 void CollectionView::setModel( QAbstractItemModel * model )
 {
-  d->filterModel->setSourceModel( model );
-  QTreeView::setModel( d->filterModel );
+  QTreeView::setModel( model );
   header()->setResizeMode( 0, QHeaderView::Stretch );
 
   connect( selectionModel(), SIGNAL( currentChanged( const QModelIndex&, const QModelIndex& ) ),
--- trunk/KDE/kdepimlibs/akonadi/collectionview.h #788348:788349
@@ -32,7 +32,6 @@
 
 /**
   A view to show a collection tree provided by a CollectionModell.
-  It uses an internal QSortFilterProxyModel to provide sorting.
 
   When a KXmlGuiWindow is passed to the constructor, the XMLGUI
   defined context menu @c akonadi_collectionview_contextmenu is
[prev in list] [next in list] [prev in thread] [next in thread] 

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