#include <projectmodel.h>
|
| ProjectModel (QObject *parent=nullptr) |
|
| ~ProjectModel () override |
|
void | make_root () |
|
void | destroy_root () |
|
void | clear () |
|
Media * | get_root () const |
|
QVariant | data (const QModelIndex &index, int role) const override |
|
Qt::ItemFlags | flags (const QModelIndex &index) const override |
|
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
|
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
|
QModelIndex | create_index (int arow, int acolumn, void *adata) |
|
QModelIndex | parent (const QModelIndex &index) const override |
|
bool | canFetchMore (const QModelIndex &parent) const override |
|
bool | hasChildren (const QModelIndex &parent=QModelIndex()) const override |
|
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
|
Media * | getItem (const QModelIndex &index) const |
|
void | appendChild (Media *parent, MediaPtr child) |
|
void | moveChild (MediaPtr child, Media *to) |
|
void | removeChild (Media *parent, Media *m) |
|
Media * | child (int i, Media *parent=nullptr) |
|
int | childCount (Media *parent=nullptr) |
|
void | set_icon (Media *m, const QIcon &ico) |
|
ProjectModel::ProjectModel |
( |
QObject * |
parent = nullptr | ) |
|
ProjectModel::~ProjectModel |
( |
| ) |
|
|
override |
void ProjectModel::appendChild |
( |
Media * |
parent, |
|
|
MediaPtr |
child |
|
) |
| |
bool ProjectModel::canFetchMore |
( |
const QModelIndex & |
parent | ) |
const |
|
override |
Media * ProjectModel::child |
( |
int |
i, |
|
|
Media * |
parent = nullptr |
|
) |
| |
int ProjectModel::childCount |
( |
Media * |
parent = nullptr | ) |
|
void ProjectModel::clear |
( |
| ) |
|
int ProjectModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
QModelIndex ProjectModel::create_index |
( |
int |
arow, |
|
|
int |
acolumn, |
|
|
void * |
adata |
|
) |
| |
QVariant ProjectModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
|
override |
void ProjectModel::destroy_root |
( |
| ) |
|
Qt::ItemFlags ProjectModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
Media * ProjectModel::get_root |
( |
| ) |
const |
Media * ProjectModel::getItem |
( |
const QModelIndex & |
index | ) |
const |
bool ProjectModel::hasChildren |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
QVariant ProjectModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
QModelIndex ProjectModel::index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| const |
|
override |
void ProjectModel::make_root |
( |
| ) |
|
QModelIndex ProjectModel::parent |
( |
const QModelIndex & |
index | ) |
const |
|
override |
void ProjectModel::removeChild |
( |
Media * |
parent, |
|
|
Media * |
m |
|
) |
| |
int ProjectModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
void ProjectModel::set_icon |
( |
Media * |
m, |
|
|
const QIcon & |
ico |
|
) |
| |
bool ProjectModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
|
override |
The documentation for this class was generated from the following files: