#include <LoggingCategoryModel.h>
Public Types | |
| enum class | Roles { ShortNameRole = Qt::UserRole + 1 , FullNameRole , EnabledRole } |
Public Member Functions | |
| LoggingCategoryTreeModel (QObject *parent=nullptr) | |
| ~LoggingCategoryTreeModel () override | |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
| QModelIndex | parent (const QModelIndex &child) const override |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| int | columnCount (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 |
| QHash< int, QByteArray > | roleNames () const override |
| bool | hasChildren (const QModelIndex &parent=QModelIndex()) const override |
| void | insertCategory (const QStringList &pathSegments, QGCLoggingCategoryItem *item) |
| void | forEachItem (const std::function< void(QGCLoggingCategoryItem *)> &fn) |
Definition at line 86 of file LoggingCategoryModel.h.
|
strong |
| Enumerator | |
|---|---|
| ShortNameRole | |
| FullNameRole | |
| EnabledRole | |
Definition at line 93 of file LoggingCategoryModel.h.
|
explicit |
Definition at line 113 of file LoggingCategoryModel.cc.
References parent().
|
overridedefault |
|
override |
Definition at line 157 of file LoggingCategoryModel.cc.
References parent().
|
override |
Definition at line 168 of file LoggingCategoryModel.cc.
References EnabledRole, FullNameRole, index(), LoggingCategoryTreeNode::item, and ShortNameRole.
|
override |
Definition at line 218 of file LoggingCategoryModel.cc.
References index().
| void LoggingCategoryTreeModel::forEachItem | ( | const std::function< void(QGCLoggingCategoryItem *)> & | fn | ) |
Definition at line 238 of file LoggingCategoryModel.cc.
|
override |
Definition at line 163 of file LoggingCategoryModel.cc.
References parent().
|
override |
Definition at line 125 of file LoggingCategoryModel.cc.
References parent().
Referenced by data(), flags(), setData(), and ~LoggingCategoryTreeModel().
| void LoggingCategoryTreeModel::insertCategory | ( | const QStringList & | pathSegments, |
| QGCLoggingCategoryItem * | item ) |
Definition at line 301 of file LoggingCategoryModel.cc.
References LoggingCategoryTreeNode::children, QGCLoggingCategoryItem::enabledChanged(), EnabledRole, LoggingCategoryTreeNode::item, and LoggingCategoryTreeNode::parent.
|
override |
Definition at line 137 of file LoggingCategoryModel.cc.
References LoggingCategoryTreeNode::children, and LoggingCategoryTreeNode::parent.
Referenced by columnCount(), hasChildren(), index(), LoggingCategoryTreeModel(), rowCount(), and ~LoggingCategoryTreeModel().
|
override |
Definition at line 227 of file LoggingCategoryModel.cc.
References EnabledRole, FullNameRole, and ShortNameRole.
|
override |
Definition at line 152 of file LoggingCategoryModel.cc.
References parent().
|
override |
Definition at line 195 of file LoggingCategoryModel.cc.
References EnabledRole, index(), and LoggingCategoryTreeNode::item.