LeechCraft  0.6.70-10870-g558588d6ec
Modular cross-platform feature rich live environment.
LeechCraft::Util::FlatToFoldersProxyModel Class Reference

#include "flattofoldersproxymodel.h"

+ Inheritance diagram for LeechCraft::Util::FlatToFoldersProxyModel:
+ Collaboration diagram for LeechCraft::Util::FlatToFoldersProxyModel:

Public Member Functions

 FlatToFoldersProxyModel (QObject *=0)
 
void SetTagsManager (ITagsManager *)
 
int columnCount (const QModelIndex &={}) const override
 
QVariant data (const QModelIndex &, int=Qt::DisplayRole) const override
 
QVariant headerData (int, Qt::Orientation, int) const override
 
Qt::ItemFlags flags (const QModelIndex &) const override
 
QModelIndex index (int, int, const QModelIndex &={}) const override
 
QModelIndex parent (const QModelIndex &) const override
 
int rowCount (const QModelIndex &={}) const override
 
Qt::DropActions supportedDropActions () const override
 
QStringList mimeTypes () const override
 
QMimeData * mimeData (const QModelIndexList &indexes) const override
 
bool dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override
 
void SetSourceModel (QAbstractItemModel *)
 
QAbstractItemModel * GetSourceModel () const
 
QModelIndex MapToSource (const QModelIndex &) const
 
QList< QModelIndex > MapFromSource (const QModelIndex &) const
 

Detailed Description

Definition at line 47 of file flattofoldersproxymodel.h.

Constructor & Destructor Documentation

◆ FlatToFoldersProxyModel()

LeechCraft::Util::FlatToFoldersProxyModel::FlatToFoldersProxyModel ( QObject *  parent = 0)

Definition at line 76 of file flattofoldersproxymodel.cpp.

References parent().

+ Here is the call graph for this function:

Member Function Documentation

◆ columnCount()

int LeechCraft::Util::FlatToFoldersProxyModel::columnCount ( const QModelIndex &  = {}) const
override

Definition at line 90 of file flattofoldersproxymodel.cpp.

◆ data()

QVariant LeechCraft::Util::FlatToFoldersProxyModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
override

◆ dropMimeData()

bool LeechCraft::Util::FlatToFoldersProxyModel::dropMimeData ( const QMimeData *  data,
Qt::DropAction  action,
int  row,
int  column,
const QModelIndex &  parent 
)
override

Definition at line 233 of file flattofoldersproxymodel.cpp.

References data(), LeechCraft::FlatTreeItem::Folder, LeechCraft::FlatTreeItem::Item, and parent().

+ Here is the call graph for this function:

◆ flags()

Qt::ItemFlags LeechCraft::Util::FlatToFoldersProxyModel::flags ( const QModelIndex &  index) const
override

Definition at line 137 of file flattofoldersproxymodel.cpp.

References index(), LeechCraft::FlatTreeItem::Item, and LeechCraft::ToFlat().

+ Here is the call graph for this function:

◆ GetSourceModel()

QAbstractItemModel * LeechCraft::Util::FlatToFoldersProxyModel::GetSourceModel ( ) const

Definition at line 309 of file flattofoldersproxymodel.cpp.

Referenced by MapFromSource(), and MapToSource().

+ Here is the caller graph for this function:

◆ headerData()

QVariant LeechCraft::Util::FlatToFoldersProxyModel::headerData ( int  section,
Qt::Orientation  orient,
int  role 
) const
override

Definition at line 128 of file flattofoldersproxymodel.cpp.

◆ index()

QModelIndex LeechCraft::Util::FlatToFoldersProxyModel::index ( int  row,
int  column,
const QModelIndex &  parent = {} 
) const
override

Definition at line 149 of file flattofoldersproxymodel.cpp.

References LeechCraft::FlatTreeItem::C_, LeechCraft::FlatTreeItem::Item, parent(), LeechCraft::ToFlat(), and LeechCraft::FlatTreeItem::Type_.

Referenced by data(), flags(), MapFromSource(), mimeData(), parent(), and rowCount().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MapFromSource()

QList< QModelIndex > LeechCraft::Util::FlatToFoldersProxyModel::MapFromSource ( const QModelIndex &  source) const

Definition at line 330 of file flattofoldersproxymodel.cpp.

References GetSourceModel(), index(), and LeechCraft::RoleTags.

+ Here is the call graph for this function:

◆ MapToSource()

QModelIndex LeechCraft::Util::FlatToFoldersProxyModel::MapToSource ( const QModelIndex &  proxy) const

Definition at line 314 of file flattofoldersproxymodel.cpp.

References GetSourceModel(), LeechCraft::FlatTreeItem::Item, and LeechCraft::ToFlat().

Referenced by mimeData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mimeData()

QMimeData * LeechCraft::Util::FlatToFoldersProxyModel::mimeData ( const QModelIndexList &  indexes) const
override

Definition at line 207 of file flattofoldersproxymodel.cpp.

References LeechCraft::FlatTreeItem::Folder, index(), LeechCraft::FlatTreeItem::Item, and MapToSource().

+ Here is the call graph for this function:

◆ mimeTypes()

QStringList LeechCraft::Util::FlatToFoldersProxyModel::mimeTypes ( ) const
override

Definition at line 200 of file flattofoldersproxymodel.cpp.

◆ parent()

QModelIndex LeechCraft::Util::FlatToFoldersProxyModel::parent ( const QModelIndex &  index) const
override

Definition at line 167 of file flattofoldersproxymodel.cpp.

References index(), LeechCraft::FlatTreeItem::Parent_, LeechCraft::FlatTreeItem::Root, and LeechCraft::ToFlat().

Referenced by dropMimeData(), FlatToFoldersProxyModel(), and index().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rowCount()

int LeechCraft::Util::FlatToFoldersProxyModel::rowCount ( const QModelIndex &  index = {}) const
override

Definition at line 185 of file flattofoldersproxymodel.cpp.

References LeechCraft::FlatTreeItem::C_, index(), and LeechCraft::ToFlat().

+ Here is the call graph for this function:

◆ SetSourceModel()

void LeechCraft::Util::FlatToFoldersProxyModel::SetSourceModel ( QAbstractItemModel *  model)

Definition at line 258 of file flattofoldersproxymodel.cpp.

◆ SetTagsManager()

void LeechCraft::Util::FlatToFoldersProxyModel::SetTagsManager ( ITagsManager tm)

Definition at line 83 of file flattofoldersproxymodel.cpp.

◆ supportedDropActions()

Qt::DropActions LeechCraft::Util::FlatToFoldersProxyModel::supportedDropActions ( ) const
override

Definition at line 193 of file flattofoldersproxymodel.cpp.


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