| 141 | } |
| 142 | |
| 143 | void TreeControl::setSelection(Node* pSelection) |
| 144 | { |
| 145 | if (mpSelection == pSelection) |
| 146 | return; |
| 147 | |
| 148 | mpSelection = pSelection; |
| 149 | while (pSelection) |
| 150 | { |
| 151 | pSelection->setExpanded(true); |
| 152 | pSelection = pSelection->getParent(); |
| 153 | } |
| 154 | |
| 155 | invalidate(); |
| 156 | eventTreeNodeSelected(this, mpSelection); |
| 157 | } |
| 158 | |
| 159 | void TreeControl::onMouseWheel(int nValue) |
| 160 | { |
nothing calls this directly
no test coverage detected