FougTools
0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
|
Provides a BFS (breadth-first search) exploration of a QStandardItemModel object. More...
#include <qttools/gui/qstandard_item_explorer.h>
Public Member Functions | |
QStandardItemExplorer () | |
QStandardItemExplorer (QStandardItem *rootItem) | |
QStandardItemExplorer (QStandardItemModel *model) | |
![]() | |
TreeBfsExplorer () | |
void | begin (QStandardItem *node=nullptr) |
Prepares exploration to start from tree node . More... | |
void | goNext () |
Move exploration to the next tree node. More... | |
bool | atEnd () const |
Is exploration beyond the last tree node (ended) ? More... | |
QStandardItem * | current () const |
Current explored tree node. More... | |
unsigned | depth () const |
Depth of the current tree node. More... | |
Provides a BFS (breadth-first search) exploration of a QStandardItemModel object.
Example of use :
qtgui::QStandardItemExplorer::QStandardItemExplorer | ( | ) |
qtgui::QStandardItemExplorer::QStandardItemExplorer | ( | QStandardItem * | rootItem | ) |
qtgui::QStandardItemExplorer::QStandardItemExplorer | ( | QStandardItemModel * | model | ) |