| 271 | } |
| 272 | |
| 273 | void PlotZoomer::zoomToBase() |
| 274 | { |
| 275 | if(m_baseRect.isNull()) { |
| 276 | return; |
| 277 | } |
| 278 | |
| 279 | if(isXAxisEn()) { |
| 280 | plot()->setAxisScale(m_xAxis, m_baseRect.left(), m_baseRect.right()); |
| 281 | } |
| 282 | if(isYAxisEn()) { |
| 283 | plot()->setAxisScale(m_yAxis, m_baseRect.top(), m_baseRect.bottom()); |
| 284 | } |
| 285 | |
| 286 | plot()->replot(); |
| 287 | plot()->repaint(); |
| 288 | m_isZoomed = false; |
| 289 | } |
| 290 | |
| 291 | #include "moc_plotzoomer.cpp" |