![]() |
Mixxx
|
#include <treeitem.h>
Public Member Functions | |
TreeItem () | |
TreeItem (const QString &data, const QString &data_path, LibraryFeature *feature, TreeItem *parent) | |
~TreeItem () | |
void | appendChild (TreeItem *child) |
TreeItem * | child (int row) |
int | childCount () const |
int | row () const |
TreeItem * | parent () |
bool | insertChildren (QList< TreeItem * > &data, int position, int count) |
bool | removeChildren (int position, int count) |
bool | setData (const QVariant &data, const QVariant &data_path) |
QVariant | data () const |
QVariant | dataPath () const |
bool | isPlaylist () const |
bool | isFolder () const |
LibraryFeature * | getFeature () |
void | setIcon (const QIcon &icon) |
QIcon | getIcon () |
Definition at line 13 of file treeitem.h.
TreeItem::TreeItem | ( | ) |
Definition at line 39 of file treeitem.cpp.
TreeItem::TreeItem | ( | const QString & | data, |
const QString & | data_path, | ||
LibraryFeature * | feature, | ||
TreeItem * | parent | ||
) |
TreeItem::~TreeItem | ( | ) |
Definition at line 46 of file treeitem.cpp.
void TreeItem::appendChild | ( | TreeItem * | child | ) |
appends a child item to this object
Definition at line 50 of file treeitem.cpp.
TreeItem * TreeItem::child | ( | int | row | ) |
returns the tree item at position 'row' in the childlist
Definition at line 54 of file treeitem.cpp.
int TreeItem::childCount | ( | ) | const |
returns the number of childs of this tree item
Definition at line 58 of file treeitem.cpp.
QVariant TreeItem::data | ( | ) | const |
simple name of the playlist
Definition at line 62 of file treeitem.cpp.
QVariant TreeItem::dataPath | ( | ) | const |
Full path of the playlist
Definition at line 66 of file treeitem.cpp.
LibraryFeature * TreeItem::getFeature | ( | ) |
QIcon TreeItem::getIcon | ( | ) |
bool TreeItem::insertChildren | ( | QList< TreeItem * > & | data, |
int | position, | ||
int | count | ||
) |
for dynamic resizing models
Definition at line 94 of file treeitem.cpp.
bool TreeItem::isFolder | ( | ) | const |
returns true if we have an inner node
Definition at line 74 of file treeitem.cpp.
bool TreeItem::isPlaylist | ( | ) | const |
Returns true if we have a leaf node
Definition at line 70 of file treeitem.cpp.
TreeItem * TreeItem::parent | ( | ) |
returns the parent
Definition at line 78 of file treeitem.cpp.
bool TreeItem::removeChildren | ( | int | position, |
int | count | ||
) |
Removes <count> children from the child list starting at index <position>
Definition at line 106 of file treeitem.cpp.
int TreeItem::row | ( | ) | const |
Returns the position of this object within its parent
Definition at line 82 of file treeitem.cpp.
bool TreeItem::setData | ( | const QVariant & | data, |
const QVariant & | data_path | ||
) |
sets data
Definition at line 118 of file treeitem.cpp.
void TreeItem::setIcon | ( | const QIcon & | icon | ) |