点击收起的槽函数
| 67 | |
| 68 | //点击收起的槽函数 |
| 69 | void 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 | //点击展开的槽函数 |
| 86 | void RcTreeWidget::slot_itemExpanded(QTreeWidgetItem *item) |
nothing calls this directly
no test coverage detected