![]() |
LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
|
#include "flattofoldersproxymodel.h"
Public Member Functions | |
FlatToFoldersProxyModel (const ITagsManager *, QObject *=nullptr) | |
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 |
bool | IsFolder (const QModelIndex &) const |
QList< QModelIndex > | GetChildren (const QModelIndex &) const |
QList< QVariant > | GetChildrenData (const QModelIndex &index, int role) const |
template<typename T> | |
QList< T > | GetChildrenData (const QModelIndex &index, int role) const |
Definition at line 24 of file flattofoldersproxymodel.h.
|
explicit |
Definition at line 55 of file flattofoldersproxymodel.cpp.
References parent().
|
override |
Definition at line 62 of file flattofoldersproxymodel.cpp.
|
override |
Definition at line 69 of file flattofoldersproxymodel.cpp.
References LC::Util::FlatTreeItem::Folder, index(), LC::Util::FlatTreeItem::Item, LC::RoleTags, and LC::Util::ToFlat().
Referenced by dropMimeData().
|
override |
Definition at line 186 of file flattofoldersproxymodel.cpp.
References data(), LC::Util::FlatTreeItem::Folder, LC::Util::FlatTreeItem::Item, parent(), and LC::Util::FlatTreeItem::Type_.
|
override |
Definition at line 109 of file flattofoldersproxymodel.cpp.
References index(), LC::Util::FlatTreeItem::Item, and LC::Util::ToFlat().
QList< QModelIndex > LC::Util::FlatToFoldersProxyModel::GetChildren | ( | const QModelIndex & | index | ) | const |
Definition at line 317 of file flattofoldersproxymodel.cpp.
References LC::Util::FlatTreeItem::C_, index(), IsFolder(), and LC::Util::ToFlat().
Referenced by GetChildrenData().
QList< QVariant > LC::Util::FlatToFoldersProxyModel::GetChildrenData | ( | const QModelIndex & | index, |
int | role ) const |
Definition at line 330 of file flattofoldersproxymodel.cpp.
References GetChildren(), and index().
Referenced by GetChildrenData().
|
inline |
Definition at line 58 of file flattofoldersproxymodel.h.
References GetChildrenData(), and index().
QAbstractItemModel * LC::Util::FlatToFoldersProxyModel::GetSourceModel | ( | ) | const |
Definition at line 256 of file flattofoldersproxymodel.cpp.
Referenced by MapFromSource(), and MapToSource().
|
override |
Definition at line 101 of file flattofoldersproxymodel.cpp.
|
override |
Definition at line 121 of file flattofoldersproxymodel.cpp.
References LC::Util::FlatTreeItem::Item, and parent().
Referenced by data(), flags(), GetChildren(), GetChildrenData(), IsFolder(), MapFromSource(), mimeData(), parent(), and rowCount().
bool LC::Util::FlatToFoldersProxyModel::IsFolder | ( | const QModelIndex & | index | ) | const |
Definition at line 311 of file flattofoldersproxymodel.cpp.
References LC::Util::FlatTreeItem::Folder, index(), and LC::Util::ToFlat().
Referenced by GetChildren().
QList< QModelIndex > LC::Util::FlatToFoldersProxyModel::MapFromSource | ( | const QModelIndex & | source | ) | const |
Definition at line 277 of file flattofoldersproxymodel.cpp.
References GetSourceModel(), index(), and LC::RoleTags.
QModelIndex LC::Util::FlatToFoldersProxyModel::MapToSource | ( | const QModelIndex & | proxy | ) | const |
Definition at line 261 of file flattofoldersproxymodel.cpp.
References GetSourceModel(), LC::Util::FlatTreeItem::Item, and LC::Util::ToFlat().
Referenced by mimeData().
|
override |
Definition at line 160 of file flattofoldersproxymodel.cpp.
References LC::Util::FlatTreeItem::Folder, index(), LC::Util::FlatTreeItem::Item, and MapToSource().
|
override |
Definition at line 153 of file flattofoldersproxymodel.cpp.
|
override |
Definition at line 132 of file flattofoldersproxymodel.cpp.
References index(), parent(), and LC::Util::FlatTreeItem::Root.
Referenced by FlatToFoldersProxyModel(), dropMimeData(), index(), and parent().
|
override |
Definition at line 141 of file flattofoldersproxymodel.cpp.
References index().
void LC::Util::FlatToFoldersProxyModel::SetSourceModel | ( | QAbstractItemModel * | model | ) |
Definition at line 209 of file flattofoldersproxymodel.cpp.
|
override |
Definition at line 146 of file flattofoldersproxymodel.cpp.