点击展开的槽函数
| 84 | |
| 85 | //点击展开的槽函数 |
| 86 | void 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 | |
| 103 | void RcTreeWidget::setDirection(RC_DIRECTION direction) |
| 104 | { |
nothing calls this directly
no test coverage detected