comparison view/View.cpp @ 1193:54e6be7ebe11 levelpanwidget

Some adjustments to make view elements clearer and more correctly sized, especially on hidpi (non-pixel-doubling) systems
author Chris Cannam
date Thu, 15 Dec 2016 15:34:33 +0000
parents 52675a1f662c
children 6828735468c9
comparison
equal deleted inserted replaced
1192:bf509e47e324 1193:54e6be7ebe11
2098 2098
2099 if (dw < (p1 - p0)) { 2099 if (dw < (p1 - p0)) {
2100 dx = p1 - 2 - dw; 2100 dx = p1 - 2 - dw;
2101 } 2101 }
2102 2102
2103 paint.drawText(sx, sy, startText); 2103 PaintAssistant::drawVisibleText(this, paint, sx, sy, startText,
2104 paint.drawText(ex, ey, endText); 2104 PaintAssistant::OutlinedText);
2105 paint.drawText(dx, dy, durationText); 2105 PaintAssistant::drawVisibleText(this, paint, ex, ey, endText,
2106 PaintAssistant::OutlinedText);
2107 PaintAssistant::drawVisibleText(this, paint, dx, dy, durationText,
2108 PaintAssistant::OutlinedText);
2106 if (durationBothEnds) { 2109 if (durationBothEnds) {
2107 paint.drawText(sx, dy, durationText); 2110 PaintAssistant::drawVisibleText(this, paint, sx, dy, durationText,
2111 PaintAssistant::OutlinedText);
2108 } 2112 }
2109 } 2113 }
2110 } 2114 }
2111 2115
2112 paint.restore(); 2116 paint.restore();