Logo Search packages:      
Sourcecode: zanshin version File versions  Download package

Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes

TodoTreeModel Class Reference

List of all members.


void collectionChanged (const Akonadi::Collection &collection)

Public Member Functions

Akonadi::Collection collection () const
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
virtual bool dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
virtual Qt::ItemFlags flags (const QModelIndex &index) const
virtual QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
virtual QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
QModelIndex indexForItem (const Akonadi::Item &item, const int column=0) const
Akonadi::Item itemForIndex (const QModelIndex &index) const
virtual QModelIndex mapFromSource (const QModelIndex &sourceIndex) const
virtual QModelIndex mapToSource (const QModelIndex &proxyIndex) const
virtual QMimeData * mimeData (const QModelIndexList &indexes) const
virtual QStringList mimeTypes () const
virtual QModelIndex parent (const QModelIndex &index) const
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
void setCollection (const Akonadi::Collection &collection)
virtual void setSourceModel (QAbstractItemModel *sourceModel)
Qt::DropActions supportedDropActions () const
 TodoTreeModel (QObject *parent=0)

Private Slots

void onSourceCollectionChanged (const Akonadi::Collection &collection)
void onSourceDataChanged (const QModelIndex &begin, const QModelIndex &end)
void onSourceInsertRows (const QModelIndex &sourceIndex, int begin, int end)
void onSourceRemoveRows (const QModelIndex &sourceIndex, int begin, int end)

Private Member Functions

TodoFlatModelflatModel () const
Akonadi::Entity::Id idForIndex (const QModelIndex &index) const
QModelIndex indexForId (Akonadi::Entity::Id id, int column=0) const

Private Attributes

QHash< Akonadi::Entity::Id,
QList< Akonadi::Entity::Id > > 
QHash< Akonadi::Entity::Id,
Akonadi::Entity::Id > 
QHash< Akonadi::Entity::Id,
QString > 
QHash< QString,
Akonadi::Entity::Id > 

Detailed Description

Definition at line 40 of file todotreemodel.h.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index