| 163 | } |
| 164 | |
| 165 | void TraditionalView::navLeft() |
| 166 | { |
| 167 | auto nid = node(); |
| 168 | if (nid == NodeID::NoNode) |
| 169 | return; |
| 170 | |
| 171 | utils::DebugMutexLocker tree_lock(&tree_.treeMutex()); |
| 172 | |
| 173 | auto pid = tree_.getParent(nid); |
| 174 | if (pid == NodeID::NoNode) |
| 175 | return; |
| 176 | |
| 177 | auto cur_alt = tree_.getAlternative(nid); |
| 178 | |
| 179 | if (cur_alt > 0) |
| 180 | { |
| 181 | auto kid = tree_.getChild(pid, cur_alt - 1); |
| 182 | emit nodeSelected(kid); |
| 183 | centerCurrentNode(); |
| 184 | emit needsRedrawing(); |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | void TraditionalView::navRight() |
| 189 | { |
nothing calls this directly
no test coverage detected