#include <QModelIndex>#include <QMetaType>Include dependency graph for ItemModelHelper.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Typedefs | |
| typedef SgNode * | SgNodePtr |
Enumerations | |
| enum | { SgNodeRole = Qt::UserRole+1 } |
Functions | |
| QModelIndex | findSgNodeInModel (const SgNode *node, const QAbstractItemModel &model, const QModelIndex &subTree=QModelIndex(), int column=0) |
| used by drag and drop functions | |
| QModelIndex | findVariantInModel (const QVariant &value, const QAbstractItemModel &model, int role=Qt::DisplayRole, const QModelIndex &subTree=QModelIndex(), int column=0) |
| typedef SgNode* SgNodePtr |
Definition at line 10 of file ItemModelHelper.h.
| anonymous enum |
| QModelIndex findSgNodeInModel | ( | const SgNode * | node, | |
| const QAbstractItemModel & | model, | |||
| const QModelIndex & | subTree = QModelIndex(), |
|||
| int | column = 0 | |||
| ) |
used by drag and drop functions
Searches for an SgNode in a model via SgNodeRole only in first column!
| node | the node to search for | |
| model | the model in which the search is performed | |
| subTree | Only the subtree spanned by this modelindex is searched | |
| column | from which column the compare-value should be fetched (most models return the same SgNode regardless of the column number) |
Definition at line 7 of file ItemModelHelper.cpp.
Referenced by findSgNodeInModel(), AsmView::gotoNode(), and RoseTreeView::gotoNode().
Here is the call graph for this function:

Here is the caller graph for this function:

| QModelIndex findVariantInModel | ( | const QVariant & | value, | |
| const QAbstractItemModel & | model, | |||
| int | role = Qt::DisplayRole, |
|||
| const QModelIndex & | subTree = QModelIndex(), |
|||
| int | column = 0 | |||
| ) |
Definition at line 33 of file ItemModelHelper.cpp.
Referenced by AsmView::addArrows(), and findVariantInModel().
Here is the call graph for this function:

Here is the caller graph for this function:

1.4.7