Open 3D Engine GraphCanvas Gem API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
Contains all the information required to build any Tree based widget that will support Drag/Drop with the GraphicsView. More...
#include <GraphCanvasTreeModel.h>
Inherits QAbstractItemModel.
Signals | |
void | OnTreeItemAdded (const GraphCanvasTreeItem *treeItem) |
void | OnTreeItemAboutToBeRemoved (const GraphCanvasTreeItem *treeItem) |
Public Member Functions | |
AZ_CLASS_ALLOCATOR (GraphCanvasTreeModel, AZ::SystemAllocator) | |
GraphCanvasTreeModel (GraphCanvasTreeItem *treeRoot, QObject *parent=nullptr) | |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
QModelIndex | parent (const QModelIndex &index) const override |
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
Qt::ItemFlags | flags (const QModelIndex &index) const override |
QStringList | mimeTypes () const override |
QMimeData * | mimeData (const QModelIndexList &indexes) const override |
bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) override |
void | setMimeType (const char *mimeType) |
const GraphCanvas::GraphCanvasTreeItem * | GetTreeRoot () const |
GraphCanvas::GraphCanvasTreeItem * | ModTreeRoot () |
QModelIndex | CreateIndex (GraphCanvasTreeItem *treeItem, int column=0) |
QModelIndex | CreateParentIndex (GraphCanvasTreeItem *treeItem, int column=0) |
void | ChildAboutToBeAdded (GraphCanvasTreeItem *parentItem, int position=-1) |
void | OnChildAdded (GraphCanvasTreeItem *itemAdded) |
Static Public Member Functions | |
static void | Reflect (AZ::ReflectContext *reflectContext) |
Public Attributes | |
QString | m_mimeType |
AZStd::unique_ptr< GraphCanvasTreeItem > | m_treeRoot |
Contains all the information required to build any Tree based widget that will support Drag/Drop with the GraphicsView.