comparison view/Pane.cpp @ 1184:97d0c798c2ac 3.0-integration

Fix some compiler problems
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 13 Dec 2016 16:23:48 +0000
parents e0ac21f07ab0
children 54e6be7ebe11
comparison
equal deleted inserted replaced
1182:6605984fa98f 1184:97d0c798c2ac
2286 // treat a vertical wheel as horizontal 2286 // treat a vertical wheel as horizontal
2287 horizontal = true; 2287 horizontal = true;
2288 } 2288 }
2289 2289
2290 if (e->phase() == Qt::ScrollBegin || 2290 if (e->phase() == Qt::ScrollBegin ||
2291 fabs(d) >= 120 || 2291 std::abs(d) >= 120 ||
2292 (d > 0 && m_pendingWheelAngle < 0) || 2292 (d > 0 && m_pendingWheelAngle < 0) ||
2293 (d < 0 && m_pendingWheelAngle > 0)) { 2293 (d < 0 && m_pendingWheelAngle > 0)) {
2294 m_pendingWheelAngle = d; 2294 m_pendingWheelAngle = d;
2295 } else { 2295 } else {
2296 m_pendingWheelAngle += d; 2296 m_pendingWheelAngle += d;