akonadi
20 #include "selectionproxymodel.h"
22 #include "entitytreemodel.h"
24 using namespace Akonadi;
29 class SelectionProxyModelPrivate
33 : q_ptr( selectionProxyModel )
36 foreach (
const QModelIndex &rootIndex, q->sourceRootIndexes() ) {
37 rootIndexAdded( rootIndex );
38 q->sourceModel()->fetchMore( rootIndex );
45 void rootIndexAdded(
const QModelIndex &newRootIndex )
50 q->sourceModel()->fetchMore( newRootIndex );
56 void rootIndexAboutToBeRemoved(
const QModelIndex &removedRootIndex )
69 : KSelectionProxyModel( selectionModel, parent ), d_ptr( new SelectionProxyModelPrivate( this ) )
71 connect(
this, SIGNAL(rootIndexAdded(QModelIndex)), SLOT(rootIndexAdded(QModelIndex)) );
72 connect(
this, SIGNAL(rootIndexAboutToBeRemoved(QModelIndex)), SLOT(rootIndexAboutToBeRemoved(QModelIndex)) );
75 SelectionProxyModel::~SelectionProxyModel()
80 #include "selectionproxymodel.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Tue Dec 11 2012 12:14:34 by
doxygen 1.8.1.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.