comparison view/Pane.cpp @ 894:d4446f267e12 alignment_view

Scale drag thresholds according to actual display resolution
author Chris Cannam
date Thu, 15 Jan 2015 10:42:00 +0000
parents dd95abfe736c
children a3b3b64fbc43
comparison
equal deleted inserted replaced
882:c0549bf12973 894:d4446f267e12
2026 int xdiff = point.x() - origin.x(); 2026 int xdiff = point.x() - origin.x();
2027 int ydiff = point.y() - origin.y(); 2027 int ydiff = point.y() - origin.y();
2028 2028
2029 int smallThreshold = 10, bigThreshold = 80; 2029 int smallThreshold = 10, bigThreshold = 80;
2030 2030
2031 if (m_manager) {
2032 smallThreshold = m_manager->scalePixelSize(smallThreshold);
2033 bigThreshold = m_manager->scalePixelSize(bigThreshold);
2034 }
2035
2031 // SVDEBUG << "Pane::updateDragMode: xdiff = " << xdiff << ", ydiff = " 2036 // SVDEBUG << "Pane::updateDragMode: xdiff = " << xdiff << ", ydiff = "
2032 // << ydiff << ", canMoveVertical = " << canMoveVertical << ", drag mode = " << m_dragMode << endl; 2037 // << ydiff << ", canMoveVertical = " << canMoveVertical << ", drag mode = " << m_dragMode << endl;
2033 2038
2034 if (dragMode == UnresolvedDrag) { 2039 if (dragMode == UnresolvedDrag) {
2035 2040