From 6c5910e9d6f46514a3f1ea619406dd65575060d9 2012-03-27 12:36:46 From: Tero Ahola Date: 2012-03-27 12:36:46 Subject: [PATCH] Removed setting scene rect in QChartView::resizeEvent --- diff --git a/src/qchartview.cpp b/src/qchartview.cpp index 86dfa77..d423bdb 100644 --- a/src/qchartview.cpp +++ b/src/qchartview.cpp @@ -65,11 +65,8 @@ QChartView::~QChartView() */ void QChartView::resizeEvent(QResizeEvent *event) { - // If the scene rect is the size of the view, you will get scrolling effect at least on OSX; - // i.e. you are able to move the chart inside the view a couple of pixels by mouse flicking - m_scene->setSceneRect(0, 0, size().width() - 2, size().height() - 2); m_chart->resize(size()); - QWidget::resizeEvent(event); + QGraphicsView::resizeEvent(event); } /*!