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