![]() |
LeechCraft
%{LEECHCRAFT_VERSION}
Modular cross-platform feature rich live environment.
|
#include "flattofoldersproxymodel.h"
Public Member Functions | |
FlatToFoldersProxyModel (QObject *=0) | |
void | SetTagsManager (ITagsManager *) |
int | columnCount (const QModelIndex &=QModelIndex()) const |
QVariant | data (const QModelIndex &, int=Qt::DisplayRole) const |
QVariant | headerData (int, Qt::Orientation, int) const |
Qt::ItemFlags | flags (const QModelIndex &) const |
QModelIndex | index (int, int, const QModelIndex &=QModelIndex()) const |
QModelIndex | parent (const QModelIndex &) const |
int | rowCount (const QModelIndex &=QModelIndex()) const |
Qt::DropActions | supportedDropActions () const |
QStringList | mimeTypes () const |
QMimeData * | mimeData (const QModelIndexList &indexes) const |
bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
void | SetSourceModel (QAbstractItemModel *) |
QAbstractItemModel * | GetSourceModel () const |
QModelIndex | MapToSource (const QModelIndex &) const |
QList< QModelIndex > | MapFromSource (const QModelIndex &) const |
Definition at line 47 of file flattofoldersproxymodel.h.
LeechCraft::Util::FlatToFoldersProxyModel::FlatToFoldersProxyModel | ( | QObject * | parent = 0 | ) |
Definition at line 77 of file flattofoldersproxymodel.cpp.
References LeechCraft::FlatTreeItem::TRoot.
int LeechCraft::Util::FlatToFoldersProxyModel::columnCount | ( | const QModelIndex & | = QModelIndex () | ) | const |
Definition at line 92 of file flattofoldersproxymodel.cpp.
QVariant LeechCraft::Util::FlatToFoldersProxyModel::data | ( | const QModelIndex & | index, |
int | role = Qt::DisplayRole |
||
) | const |
Definition at line 99 of file flattofoldersproxymodel.cpp.
References ITagsManager::GetTag(), LeechCraft::FlatTreeItem::Index_, LeechCraft::RoleTags, LeechCraft::FlatTreeItem::Tag_, LeechCraft::FlatTreeItem::TFolder, LeechCraft::FlatTreeItem::TItem, LeechCraft::ToFlat(), and LeechCraft::FlatTreeItem::Type_.
bool LeechCraft::Util::FlatToFoldersProxyModel::dropMimeData | ( | const QMimeData * | data, |
Qt::DropAction | action, | ||
int | row, | ||
int | column, | ||
const QModelIndex & | parent | ||
) |
Definition at line 235 of file flattofoldersproxymodel.cpp.
Qt::ItemFlags LeechCraft::Util::FlatToFoldersProxyModel::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 139 of file flattofoldersproxymodel.cpp.
References LeechCraft::FlatTreeItem::TItem, and LeechCraft::ToFlat().
QAbstractItemModel * LeechCraft::Util::FlatToFoldersProxyModel::GetSourceModel | ( | ) | const |
Definition at line 311 of file flattofoldersproxymodel.cpp.
QVariant LeechCraft::Util::FlatToFoldersProxyModel::headerData | ( | int | section, |
Qt::Orientation | orient, | ||
int | role | ||
) | const |
Definition at line 130 of file flattofoldersproxymodel.cpp.
QModelIndex LeechCraft::Util::FlatToFoldersProxyModel::index | ( | int | row, |
int | column, | ||
const QModelIndex & | parent = QModelIndex () |
||
) | const |
Definition at line 151 of file flattofoldersproxymodel.cpp.
References LeechCraft::FlatTreeItem::C_, LeechCraft::FlatTreeItem::TItem, LeechCraft::ToFlat(), and LeechCraft::FlatTreeItem::Type_.
Referenced by mimeData().
QList< QModelIndex > LeechCraft::Util::FlatToFoldersProxyModel::MapFromSource | ( | const QModelIndex & | source | ) | const |
Definition at line 329 of file flattofoldersproxymodel.cpp.
QModelIndex LeechCraft::Util::FlatToFoldersProxyModel::MapToSource | ( | const QModelIndex & | proxy | ) | const |
Definition at line 316 of file flattofoldersproxymodel.cpp.
References LeechCraft::FlatTreeItem::Index_, LeechCraft::FlatTreeItem::TItem, LeechCraft::ToFlat(), and LeechCraft::FlatTreeItem::Type_.
Referenced by mimeData().
QMimeData * LeechCraft::Util::FlatToFoldersProxyModel::mimeData | ( | const QModelIndexList & | indexes | ) | const |
Definition at line 209 of file flattofoldersproxymodel.cpp.
References index(), and MapToSource().
QStringList LeechCraft::Util::FlatToFoldersProxyModel::mimeTypes | ( | ) | const |
Definition at line 202 of file flattofoldersproxymodel.cpp.
QModelIndex LeechCraft::Util::FlatToFoldersProxyModel::parent | ( | const QModelIndex & | index | ) | const |
Definition at line 169 of file flattofoldersproxymodel.cpp.
References LeechCraft::FlatTreeItem::Parent_, LeechCraft::ToFlat(), and LeechCraft::FlatTreeItem::TRoot.
int LeechCraft::Util::FlatToFoldersProxyModel::rowCount | ( | const QModelIndex & | index = QModelIndex () | ) | const |
Definition at line 187 of file flattofoldersproxymodel.cpp.
References LeechCraft::FlatTreeItem::C_, and LeechCraft::ToFlat().
void LeechCraft::Util::FlatToFoldersProxyModel::SetSourceModel | ( | QAbstractItemModel * | model | ) |
Definition at line 260 of file flattofoldersproxymodel.cpp.
void LeechCraft::Util::FlatToFoldersProxyModel::SetTagsManager | ( | ITagsManager * | tm | ) |
Definition at line 86 of file flattofoldersproxymodel.cpp.
Qt::DropActions LeechCraft::Util::FlatToFoldersProxyModel::supportedDropActions | ( | ) | const |
Definition at line 195 of file flattofoldersproxymodel.cpp.