Mercurial > hg > svgui
diff layer/TimeRulerLayer.cpp @ 1078:ee01a4062747 spectrogram-minor-refactor
Move drawVisibleText to PaintAssistant
author | Chris Cannam |
---|---|
date | Thu, 30 Jun 2016 12:40:22 +0100 |
parents | 33d7e1a6747b |
children | a34a2a25907c |
line wrap: on
line diff
--- a/layer/TimeRulerLayer.cpp Thu Jun 30 10:59:11 2016 +0100 +++ b/layer/TimeRulerLayer.cpp Thu Jun 30 12:40:22 2016 +0100 @@ -19,8 +19,10 @@ #include "data/model/Model.h" #include "base/RealTime.h" +#include "view/View.h" + #include "ColourDatabase.h" -#include "view/View.h" +#include "PaintAssistant.h" #include <QPainter> @@ -324,7 +326,7 @@ // backmost layer, don't worry about outlining the text paint.drawText(x+2 - tw/2, y, text); } else { - v->drawVisibleText(paint, x+2 - tw/2, y, text, View::OutlinedText); + PaintAssistant::drawVisibleText(v, paint, x+2 - tw/2, y, text, PaintAssistant::OutlinedText); } } }