comparison connectionitem.cpp @ 250:be483734bde5

* Make it possible for changeset items to take two or three lines of description, depending on how much there is * Some other small improvements to how changeset items are drawn (e.g. give them opaque white backgrounds)
author Chris Cannam
date Tue, 11 Jan 2011 17:58:14 +0000
parents 8fd71f570884
children
comparison
equal deleted inserted replaced
249:123e06d5d9af 250:be483734bde5
87 } 87 }
88 88
89 float c_x = xscale * c_col + size/2; 89 float c_x = xscale * c_col + size/2;
90 float p_x = xscale * p_col + size/2; 90 float p_x = xscale * p_col + size/2;
91 91
92 p.moveTo(c_x, yscale * c_row + size); 92 // ensure line reaches the box, even if it's in a small height --
93 // doesn't matter if we overshoot as the box is opaque and has a
94 // greater Z value
95 p.moveTo(c_x, yscale * c_row + size - 20);
96
97 p.lineTo(c_x, yscale * c_row + size);
93 98
94 if (p_col == c_col) { 99 if (p_col == c_col) {
95 100
96 p.lineTo(p_x, yscale * p_row); 101 p.lineTo(p_x, yscale * p_row);
97 102