akonadi
23 #ifndef LEAFEXTENSIONPROXYMODEL_H
24 #define LEAFEXTENSIONPROXYMODEL_H
26 #include <QSortFilterProxyModel>
30 class LeafExtensionProxyModel :
public QSortFilterProxyModel
35 explicit LeafExtensionProxyModel( QObject *parent = 0 );
36 ~LeafExtensionProxyModel();
38 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex() )
const;
39 QModelIndex parent(
const QModelIndex &index )
const;
40 int rowCount(
const QModelIndex &index )
const;
41 int columnCount(
const QModelIndex &index )
const;
43 QVariant data(
const QModelIndex &proxyIndex,
int role = Qt::DisplayRole )
const;
44 Qt::ItemFlags flags(
const QModelIndex &index )
const;
45 bool setData(
const QModelIndex &index,
const QVariant &data,
int role = Qt::EditRole );
46 bool hasChildren(
const QModelIndex &parent = QModelIndex() )
const;
47 QModelIndex buddy(
const QModelIndex &index )
const;
48 void fetchMore(
const QModelIndex &index );
50 void setSourceModel( QAbstractItemModel *sourceModel );
56 virtual int leafRowCount(
const QModelIndex &index )
const = 0;
61 virtual int leafColumnCount(
const QModelIndex &index )
const = 0;
67 virtual QVariant leafData(
const QModelIndex &index,
int row,
int column,
int role = Qt::DisplayRole )
const = 0;
74 Q_PRIVATE_SLOT( d,
void sourceRowsInserted(
const QModelIndex&,
int,
int ) )
75 Q_PRIVATE_SLOT( d,
void sourceRowsRemoved( const QModelIndex&,
int,
int ) )
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:27 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.