|
Schim
|
A database of symbols. More...
#include <database.h>
Public Member Functions | |
| QVariant | data (const QModelIndex &index, int role) const override |
| Used by the view to display each item's data. More... | |
| void | update () |
| Update the database from the file system. | |
| bool | iterateLeaves (const QModelIndex &index, std::function< bool(const QModelIndex &)> fun) |
| Iterate through all leaves of the database tree. More... | |
A database of symbols.
The database is represented by a tree model.
|
override |
Used by the view to display each item's data.
Each item is displayed only with a preview icon and a name.
| bool Database::iterateLeaves | ( | const QModelIndex & | index, |
| std::function< bool(const QModelIndex &)> | fun | ||
| ) |
Iterate through all leaves of the database tree.
| index | The index from which to start |
| fun | Function to execute for each leaf |
1.8.13