[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/akonadi/akonadiconsole
From: Stephen Kelly <steveire () gmail ! com>
Date: 2009-12-03 17:14:32
Message-ID: 1259860472.731014.28846.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1057948 by skelly:
One fewer proxy model in the chain. Strangely this fixes a change-type crash.
M +3 -6 browserwidget.cpp
--- trunk/KDE/kdepim/akonadi/akonadiconsole/browserwidget.cpp #1057947:1057948
@@ -133,6 +133,8 @@
collectionFilter->setSourceModel( mBrowserModel );
collectionFilter->addMimeTypeInclusionFilter( Collection::mimeType() );
collectionFilter->setHeaderGroup( EntityTreeModel::CollectionTreeHeaders );
+ collectionFilter->setDynamicSortFilter( true );
+ collectionFilter->setSortCaseSensitivity( Qt::CaseInsensitive );
statisticsProxyModel = new StatisticsProxyModel( this );
statisticsProxyModel->setToolTipEnabled( true );
@@ -142,13 +144,8 @@
quotaProxyModel->setWarningThreshold( 50.0 );
quotaProxyModel->setSourceModel( statisticsProxyModel );
- QSortFilterProxyModel *sortModel = new QSortFilterProxyModel( this );
- sortModel->setDynamicSortFilter( true );
- sortModel->setSortCaseSensitivity( Qt::CaseInsensitive );
- sortModel->setSourceModel( quotaProxyModel );
+ mCollectionView->setModel( quotaProxyModel );
- mCollectionView->setModel( sortModel );
-
Akonadi::SelectionProxyModel *selectionProxyModel = new \
Akonadi::SelectionProxyModel( mCollectionView->selectionModel(), this ); \
selectionProxyModel->setSourceModel( mBrowserModel ); \
selectionProxyModel->setFilterBehavior( \
KSelectionProxyModel::ChildrenOfExactSelection );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic