#include "ItemModelHelper.h"#include <QDebug>Include dependency graph for ItemModelHelper.cpp:

Go to the source code of this file.
Functions | |
| QModelIndex | findSgNodeInModel (const SgNode *node, const QAbstractItemModel &model, const QModelIndex &subTreeInd, int column) |
| used by drag and drop functions | |
| QModelIndex | findVariantInModel (const QVariant &value, const QAbstractItemModel &model, int role, const QModelIndex &subTreeInd, int column) |
| 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(), RoseTreeView::gotoNode(), and AsmView::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, | |||
| const QModelIndex & | subTreeInd, | |||
| int | column | |||
| ) |
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