|
KiCad PCB EDA Suite
|
RAII guard that detaches the GtkTreeView from the model across a tree rebuild so a deferred frame-clock tick cannot validate rows pointing at nodes the rebuild frees. More...
#include <lib_tree_model_adapter.h>
Public Member Functions | |
| ResetTreeView (LIB_TREE_MODEL_ADAPTER &aAdapter) | |
| ~ResetTreeView () | |
| ResetTreeView (const ResetTreeView &)=delete | |
| ResetTreeView & | operator= (const ResetTreeView &)=delete |
Private Attributes | |
| LIB_TREE_MODEL_ADAPTER & | m_adapter |
RAII guard that detaches the GtkTreeView from the model across a tree rebuild so a deferred frame-clock tick cannot validate rows pointing at nodes the rebuild frees.
It also drops any queued scroll into those rows.
Construct before any node is freed.
Definition at line 347 of file lib_tree_model_adapter.h.
|
explicit |
Definition at line 178 of file lib_tree_model_adapter.cpp.
References KIPLATFORM::UI::CancelPendingScroll(), LIB_TREE_MODEL_ADAPTER::LIB_TREE_MODEL_ADAPTER(), and m_adapter.
Referenced by operator=(), and ResetTreeView().
| LIB_TREE_MODEL_ADAPTER::ResetTreeView::~ResetTreeView | ( | ) |
Definition at line 190 of file lib_tree_model_adapter.cpp.
References m_adapter.
|
delete |
References ResetTreeView().
|
delete |
References ResetTreeView().
|
private |
Definition at line 357 of file lib_tree_model_adapter.h.
Referenced by ResetTreeView(), and ~ResetTreeView().