| 169 | QSet<Navigator *> *PlotNavigator::navigators() { return m_navigators; } |
| 170 | |
| 171 | void PlotNavigator::addRectToHistory(Navigator *nav, const QRectF &rect, navigationType type) |
| 172 | { |
| 173 | if(m_historyEn) { |
| 174 | if(nav->lastOperation == type && (type == navigationType::Magnify || type == navigationType::Pan)) { |
| 175 | nav->history->pop(); |
| 176 | } |
| 177 | nav->history->push(rect); |
| 178 | nav->lastOperation = type; |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | void PlotNavigator::addNavigators(QwtAxisId axisId) |
| 183 | { |