comparison src/panned.cpp @ 671:ce29dc775650 qt5

Fix compiler warnings
author Chris Cannam
date Wed, 05 Dec 2018 09:43:26 +0000
parents ae67ea0af696
children ad3e5693cb76
comparison
equal deleted inserted replaced
670:8f3075eeaac2 671:ce29dc775650
86 { 86 {
87 QGraphicsView::paintEvent(e); 87 QGraphicsView::paintEvent(e);
88 } 88 }
89 89
90 void 90 void
91 Panned::drawForeground(QPainter *paint, const QRectF &) 91 Panned::drawForeground(QPainter *, const QRectF &)
92 { 92 {
93 QPointF nearpt = mapToScene(0, 0); 93 QPointF nearpt = mapToScene(0, 0);
94 QPointF farpt = mapToScene(width(), height()); 94 QPointF farpt = mapToScene(width(), height());
95 QSizeF sz(farpt.x()-nearpt.x(), farpt.y()-nearpt.y()); 95 QSizeF sz(farpt.x()-nearpt.x(), farpt.y()-nearpt.y());
96 QRectF pr(nearpt, sz); 96 QRectF pr(nearpt, sz);
220 case VerticalDrag: 220 case VerticalDrag:
221 if (dx > largeThreshold) { 221 if (dx > largeThreshold) {
222 m_dragDirection = FreeDrag; 222 m_dragDirection = FreeDrag;
223 } 223 }
224 break; 224 break;
225
226 case FreeDrag:
227 // stick with it
228 break;
225 }; 229 };
226 } 230 }
227 231
228 void 232 void
229 Panned::mouseMoveEvent(QMouseEvent *ev) 233 Panned::mouseMoveEvent(QMouseEvent *ev)