| 311 | } |
| 312 | |
| 313 | void PlotMagnifier::zoomToBase() |
| 314 | { |
| 315 | if(m_baseRect.isNull()) { |
| 316 | return; |
| 317 | } |
| 318 | |
| 319 | if(isXAxisEn()) { |
| 320 | plot()->setAxisScale(m_xAxis, m_baseRect.left(), m_baseRect.right()); |
| 321 | } |
| 322 | if(isYAxisEn()) { |
| 323 | plot()->setAxisScale(m_yAxis, m_baseRect.top(), m_baseRect.bottom()); |
| 324 | } |
| 325 | |
| 326 | plot()->replot(); |
| 327 | m_isZoomed = false; |
| 328 | } |
| 329 | |
| 330 | #include "moc_plotmagnifier.cpp" |