@@ -211,7 +211,7 void QChartView::mouseReleaseEvent(QMouseEvent *event) | |||||
211 | event->accept(); |
|
211 | event->accept(); | |
212 | } |
|
212 | } | |
213 |
|
213 | |||
214 |
|
|
214 | } else if (d_ptr->m_rubberBand && event->button() == Qt::RightButton) { | |
215 | // If vertical or horizontal rubberband mode, restrict zoom out to specified axis. |
|
215 | // If vertical or horizontal rubberband mode, restrict zoom out to specified axis. | |
216 | // Since there is no suitable API for that, use zoomIn with rect bigger than the |
|
216 | // Since there is no suitable API for that, use zoomIn with rect bigger than the | |
217 | // plot area. |
|
217 | // plot area. | |
@@ -230,7 +230,6 void QChartView::mouseReleaseEvent(QMouseEvent *event) | |||||
230 | d_ptr->m_chart->zoomOut(); |
|
230 | d_ptr->m_chart->zoomOut(); | |
231 | } |
|
231 | } | |
232 | event->accept(); |
|
232 | event->accept(); | |
233 | } |
|
|||
234 | } else { |
|
233 | } else { | |
235 | #endif |
|
234 | #endif | |
236 | QGraphicsView::mouseReleaseEvent(event); |
|
235 | QGraphicsView::mouseReleaseEvent(event); |
General Comments 0
You need to be logged in to leave comments.
Login now