@@ -105,9 +105,10 void QChartView::setRubberBandPolicy(const RubberBandPolicy policy) | |||||
105 | m_verticalRubberBand = false; |
|
105 | m_verticalRubberBand = false; | |
106 | return; |
|
106 | return; | |
107 | } |
|
107 | } | |
108 |
|
108 | if(!m_rubberBand){ | ||
109 | m_rubberBand = new QRubberBand(QRubberBand::Rectangle, this); |
|
109 | m_rubberBand = new QRubberBand(QRubberBand::Rectangle, this); | |
110 | m_rubberBand->setEnabled(true); |
|
110 | m_rubberBand->setEnabled(true); | |
|
111 | } | |||
111 | } |
|
112 | } | |
112 |
|
113 | |||
113 | QChartView::RubberBandPolicy QChartView::rubberBandPolicy() const |
|
114 | QChartView::RubberBandPolicy QChartView::rubberBandPolicy() const |
General Comments 0
You need to be logged in to leave comments.
Login now