#include <filetreeitem.h>
Public Member Functions | |
FileTreeItem (const QList< QVariant > &data, FileTreeItem *parent=0, QString path="") | |
void | appendChild (FileTreeItem *child) |
void | deleteChildren () |
FileTreeItem * | child (int row) |
int | childCount () const |
int | columnCount () const |
QVariant | data (int column) const |
int | row () const |
FileTreeItem * | parent () |
void | setFilePath (QString path) |
QString | filePath () const |
This class implements a tree item for a model/view of a directory structure. It is used in multiple places for list or tree views for example in the Insert Fragment dialog.
In particular, the class contains a non-user visible property which stores the full path to the file it represents on disk. Use filePath() or setFilePath() to access this.