[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kaddressbook
From: Tobias Koenig <tokoe () kde ! org>
Date: 2010-05-14 23:12:14
Message-ID: 20100514231214.11D8AAC8B5 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1126822 by tokoe:
Do not use the allContacts model for the simple view, this is not
needed anymore with the new selection based model and improves
performance dramatically
BUG: 214195
M +0 -11 mainwidget.cpp
--- trunk/KDE/kdepim/kaddressbook/mainwidget.cpp #1126821:1126822
@@ -579,17 +579,6 @@
mDetailsPane->setVisible( true );
mContactSwitcher->setVisible( on );
- // If simple mode is on, we use a model that provides all available contacts
- // in a list, otherwise we use the model that provides all contacts of the
- // currently selected collection.
- if ( on )
- mContactsFilterModel->setSourceModel( allContactsModel() );
- else
- mContactsFilterModel->setSourceModel( mItemTree );
-
- if ( mCollectionView->model() )
- mCollectionView->setCurrentIndex( mCollectionView->model()->index( 0, 0 ) );
-
if ( mItemView->model() )
mItemView->setCurrentIndex( mItemView->model()->index( 0, 0 ) );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic