| 343 | } |
| 344 | |
| 345 | void PlotNavigator::removeChannel(PlotChannel *channel) |
| 346 | { |
| 347 | // remove axes if there aren't other channels using them |
| 348 | QwtAxisId xAxis = channel->xAxis()->axisId(); |
| 349 | QwtAxisId yAxis = channel->yAxis()->axisId(); |
| 350 | removeNavigators(xAxis, channel); |
| 351 | removeNavigators(yAxis, channel); |
| 352 | m_channels->remove(channel); |
| 353 | |
| 354 | if(m_channels->empty()) { |
| 355 | m_visibleZoomer->setEnabled(false); |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | bool PlotNavigator::isZoomed() |
| 360 | { |
nothing calls this directly
no test coverage detected