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

Public Types | Public Member Functions | Private Slots | Private Attributes

LibraryModel Class Reference

List of all members.

Public Types

enum  LibraryType { Projects = 0, Contexts }

Public Member Functions

virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) 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
bool isInbox (const QModelIndex &index) const
bool isLibraryRoot (const QModelIndex &index) const
 LibraryModel (QObject *parent=0)
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
virtual void setSourceModel (QAbstractItemModel *sourceModel)
void setType (LibraryType type)
virtual void sort (int column, Qt::SortOrder order=Qt::AscendingOrder)
Qt::DropActions supportedDropActions () const
LibraryType type () const

Private Slots

void onSourceDataChanged (const QModelIndex &begin, const QModelIndex &end)
void onSourceLayoutChanged ()
void onSourceRowsAboutToBeInserted (const QModelIndex &sourceIndex, int begin, int end)
void onSourceRowsAboutToBeRemoved (const QModelIndex &sourceIndex, int begin, int end)
void onSourceRowsInserted (const QModelIndex &sourceIndex, int begin, int end)
void onSourceRowsRemoved (const QModelIndex &sourceIndex, int begin, int end)

Private Attributes

const qint64 m_inboxToken
const qint64 m_libraryToken
QList< QPersistentModelIndex > m_sourceIndexesList
const qint64 m_tokenShift
LibraryType m_type

Detailed Description

Definition at line 31 of file librarymodel.h.

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

Generated by  Doxygen 1.6.0   Back to index