Mixxx

TreeItem Class Reference

#include <treeitem.h>

Collaboration diagram for TreeItem:

List of all members.

Public Member Functions

 TreeItem ()
 TreeItem (const QString &data, const QString &data_path, LibraryFeature *feature, TreeItem *parent)
 ~TreeItem ()
void appendChild (TreeItem *child)
TreeItemchild (int row)
int childCount () const
int row () const
TreeItemparent ()
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
LibraryFeaturegetFeature ()
void setIcon (const QIcon &icon)
QIcon getIcon ()

Detailed Description

Definition at line 13 of file treeitem.h.


Constructor & Destructor Documentation

TreeItem::TreeItem ( )

Definition at line 39 of file treeitem.cpp.

TreeItem::TreeItem ( const QString &  data,
const QString &  data_path,
LibraryFeature feature,
TreeItem parent 
)

Definition at line 32 of file treeitem.cpp.

Here is the call graph for this function:

TreeItem::~TreeItem ( )

Definition at line 46 of file treeitem.cpp.


Member Function Documentation

void TreeItem::appendChild ( TreeItem child)

appends a child item to this object

Definition at line 50 of file treeitem.cpp.

Here is the caller graph for this function:

TreeItem * TreeItem::child ( int  row)

returns the tree item at position 'row' in the childlist

Definition at line 54 of file treeitem.cpp.

Here is the caller graph for this function:

int TreeItem::childCount ( ) const

returns the number of childs of this tree item

Definition at line 58 of file treeitem.cpp.

Here is the caller graph for this function:

QVariant TreeItem::data ( ) const

simple name of the playlist

Definition at line 62 of file treeitem.cpp.

Here is the caller graph for this function:

QVariant TreeItem::dataPath ( ) const

Full path of the playlist

Definition at line 66 of file treeitem.cpp.

Here is the caller graph for this function:

LibraryFeature * TreeItem::getFeature ( )

Definition at line 90 of file treeitem.cpp.

Here is the caller graph for this function:

QIcon TreeItem::getIcon ( )

Definition at line 124 of file treeitem.cpp.

Here is the caller graph for this function:

bool TreeItem::insertChildren ( QList< TreeItem * > &  data,
int  position,
int  count 
)

for dynamic resizing models

Definition at line 94 of file treeitem.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

TreeItem * TreeItem::parent ( )

returns the parent

Definition at line 78 of file treeitem.cpp.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

int TreeItem::row ( ) const

Returns the position of this object within its parent

Definition at line 82 of file treeitem.cpp.

Here is the caller graph for this function:

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)

Definition at line 128 of file treeitem.cpp.

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines