|
| enum | Filter : uint32_t {
NoFilter = 0x00000000
, IgnoreInactiveStations = 0x00000001
, IgnoreNameChange = 0x00000002
, IgnoreIconChange = 0x00000004
,
IgnoreAdd = 0x00000008
, IgnoreRemove = 0x00000010
, IgnoreChildren = 0x00000020
} |
| |
| enum | SubmitPolicy { AutoSubmit
, ManualSubmit
} |
| |
|
|
void | itemNameChanged (IItem *item, const QString &name) |
| |
|
void | itemIconChanged (IItem *item, const QIcon &icon) |
| |
|
void | itemAdded (IItem *item) |
| |
|
void | itemRemoved (IItem *item) |
| |
|
| using | TreeCallback = std::function<void(const QModelIndex&)> |
| |
|
| void | onModelDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector< int > &roles=QVector< int >()) |
| |
| void | onModelRowsInserted (const QModelIndex &parent, int first, int last) |
| |
| void | onModelRowsRemoved (const QModelIndex &parent, int first, int last) |
| |
Definition at line 54 of file stationtreeeventmonitor.h.
◆ TreeCallback
| using TreeCallback = std::function<void(const QModelIndex&)> |
|
private |
◆ Filter
◆ SubmitPolicy
◆ StationTreeEventMonitor()
◆ filter()
| uint32_t filter |
( |
| ) |
const |
|
inline |
◆ isActiveStationItem()
| bool isActiveStationItem |
( |
const QModelIndex & | index | ) |
const |
|
private |
◆ itemFromIndex()
| IItem * itemFromIndex |
( |
const QModelIndex & | index | ) |
const |
|
private |
◆ iterateOverTree()
| void iterateOverTree |
( |
const QModelIndex & | parent, |
|
|
const TreeCallback & | callback, |
|
|
bool | reverse = false ) |
|
private |
◆ onModelDataChanged
| void onModelDataChanged |
( |
const QModelIndex & | topLeft, |
|
|
const QModelIndex & | bottomRight, |
|
|
const QVector< int > & | roles = QVector<int>() ) |
|
privateslot |
◆ onModelRowsInserted
| void onModelRowsInserted |
( |
const QModelIndex & | parent, |
|
|
int | first, |
|
|
int | last ) |
|
privateslot |
◆ onModelRowsRemoved
| void onModelRowsRemoved |
( |
const QModelIndex & | parent, |
|
|
int | first, |
|
|
int | last ) |
|
privateslot |
◆ refresh
◆ setFilter()
| uint32_t setFilter |
( |
uint32_t | filter | ) |
|
|
inline |
◆ setFilterFlag()
| uint32_t setFilterFlag |
( |
uint32_t | flag, |
|
|
bool | on = true ) |
|
inline |
◆ setSubmitPolicy()
| void setSubmitPolicy |
( |
SubmitPolicy | policy | ) |
|
|
inline |
◆ submit
◆ _addedIndices
| std::list<QModelIndex> _addedIndices |
|
private |
◆ _filter
| uint32_t _filter = IgnoreInactiveStations |
|
private |
◆ _nameCache
| std::unordered_map<IItem*, QString> _nameCache |
|
private |
◆ _nameTable
◆ _policy
| SubmitPolicy _policy = AutoSubmit |
|
private |
◆ _rdk
◆ _tree
| QTreeWidget* _tree = nullptr |
|
private |
The documentation for this class was generated from the following files: