15 #ifndef BORNAGAIN_GUI_COREGUI_VIEWS_PROPERTYEDITOR_COMPONENTTREEVIEW_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_PROPERTYEDITOR_COMPONENTTREEVIEW_H
27 class QStandardItemModel;
51 void setRootIndex(
const QModelIndex& index,
bool show_root_item =
true);
Defines class ComponentView.
Proxy model to adjust SessionModel for component editor (right bottom corner of SampleView and simila...
Additional action for ComponentTreeView.
Component property tree for SessionItems.
SessionModelDelegate * m_delegate
std::unique_ptr< RightMouseButtonEater > m_eventFilter
ComponentTreeView(QWidget *parent=nullptr)
void setItem(SessionItem *item)
bool m_show_root_item
Tree will starts from item itself, if true.
QStandardItemModel * m_placeHolderModel
void setModel(SessionModel *model)
ComponentProxyModel * m_proxyModel
void setRootIndex(const QModelIndex &index, bool show_root_item=true)
void setShowRootItem(bool show)
void onCustomContextMenuRequested(const QPoint &pos)
ComponentTreeActions * m_actions
void setShowHeader(bool show)
Base class for ComponentTreeView and ComponentFlatView.
The SessionModelDelegate class presents the content of SessionModel items in standard QTreeView.