Mercurial > hg > svgui
changeset 1048:e8102ff5573b
Use drawVisibleText for box labels
author | Chris Cannam |
---|---|
date | Fri, 04 Mar 2016 12:23:31 +0000 |
parents | 86a8145a1897 |
children | 40480e4bab6a dc2af6616c83 |
files | layer/Colour3DPlotLayer.cpp |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.cpp Fri Mar 04 12:23:07 2016 +0000 +++ b/layer/Colour3DPlotLayer.cpp Fri Mar 04 12:23:31 2016 +0000 @@ -1416,10 +1416,12 @@ double value = m_model->getValueAt(sx, sy); snprintf(labelbuf, buflen, "%06f", value); QString text(labelbuf); - paint.setPen(v->getBackground()); - paint.drawText(rx0 + 2, - ry0 - h / sh - 1 + 2 + paint.fontMetrics().ascent(), - text); + v->drawVisibleText + (paint, + rx0 + 2, + ry0 - h / sh - 1 + 2 + paint.fontMetrics().ascent(), + text, + View::OutlinedText); } } }