MCPcopy Create free account
hub / github.com/cxasm/notepad-- / slot_itemCollapsed

Method slot_itemCollapsed

src/RcTreeWidget.cpp:69–83  ·  view source on GitHub ↗

点击收起的槽函数

Source from the content-addressed store, hash-verified

67
68//点击收起的槽函数
69void RcTreeWidget::slot_itemCollapsed(QTreeWidgetItem *item)
70{
71 QString name = item->data(0, Qt::ToolTipRole).toString();
72 //左边变化,通知右边去改变
73 if (m_direction == RC_LEFT)
74 {
75 //通知右边去收起
76 m_mediator->setRightItemStatus(name,RC_COLLAPSED);
77 }
78 else
79 {
80 //通知左边去收起
81 m_mediator->setLeftItemStatus(name, RC_COLLAPSED);
82 }
83}
84
85//点击展开的槽函数
86void RcTreeWidget::slot_itemExpanded(QTreeWidgetItem *item)

Callers

nothing calls this directly

Calls 3

dataMethod · 0.80
setRightItemStatusMethod · 0.80
setLeftItemStatusMethod · 0.80

Tested by

no test coverage detected