Mercurial > hg > svgui
comparison layer/TimeValueLayer.cpp @ 576:a4ba6c96b66d
* Make text labels in time instant layer more apparent (use drawVisibleText)
* Fix bug that caused time-instants in segmentation mode to come up white when zoomed far out
author | Chris Cannam |
---|---|
date | Mon, 25 Oct 2010 21:52:38 +0200 |
parents | 5bcfc5606528 |
children | f4960f8ce798 |
comparison
equal
deleted
inserted
replaced
575:bb1035a24958 | 576:a4ba6c96b66d |
---|---|
1085 paint.drawRect(x, -1, nx - x, v->height() + 1); | 1085 paint.drawRect(x, -1, nx - x, v->height() + 1); |
1086 } | 1086 } |
1087 | 1087 |
1088 if (p.label != "") { | 1088 if (p.label != "") { |
1089 if (!haveNext || nx > x + 6 + paint.fontMetrics().width(p.label)) { | 1089 if (!haveNext || nx > x + 6 + paint.fontMetrics().width(p.label)) { |
1090 paint.drawText(x + 5, textY, p.label); | 1090 v->drawVisibleText(paint, x + 5, textY, p.label, View::OutlinedText); |
1091 // paint.drawText(x + 5, textY, p.label); | |
1091 } | 1092 } |
1092 } | 1093 } |
1093 } | 1094 } |
1094 | 1095 |
1095 if ((m_plotStyle == PlotCurve || m_plotStyle == PlotLines) | 1096 if ((m_plotStyle == PlotCurve || m_plotStyle == PlotLines) |