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

Method slot_itemExpanded

src/RcTreeWidget.cpp:86–101  ·  view source on GitHub ↗

点击展开的槽函数

Source from the content-addressed store, hash-verified

84
85//点击展开的槽函数
86void RcTreeWidget::slot_itemExpanded(QTreeWidgetItem *item)
87{
88 QString name = item->data(0, Qt::ToolTipRole).toString();
89
90 //左边变化,通知右边去改变
91 if (m_direction == RC_LEFT)
92 {
93 //右边展开
94 m_mediator->setRightItemStatus(name, RC_EXPANDED);
95 }
96 else
97 {
98 //左边收起
99 m_mediator->setLeftItemStatus(name, RC_EXPANDED);
100 }
101}
102
103void RcTreeWidget::setDirection(RC_DIRECTION direction)
104{

Callers

nothing calls this directly

Calls 3

dataMethod · 0.80
setRightItemStatusMethod · 0.80
setLeftItemStatusMethod · 0.80

Tested by

no test coverage detected