Mercurial > hg > svgui
comparison layer/SliceLayer.cpp @ 1078:ee01a4062747 spectrogram-minor-refactor
Move drawVisibleText to PaintAssistant
author | Chris Cannam |
---|---|
date | Thu, 30 Jun 2016 12:40:22 +0100 |
parents | 4fe7a09be0fe |
children | 1a7c2ca31579 |
comparison
equal
deleted
inserted
replaced
1077:5144d7185fb5 | 1078:ee01a4062747 |
---|---|
483 .arg(f1 - f0 + 1); | 483 .arg(f1 - f0 + 1); |
484 | 484 |
485 v->drawVisibleText | 485 v->drawVisibleText |
486 (paint, xorigin + 5, | 486 (paint, xorigin + 5, |
487 paint.fontMetrics().ascent() + 5, | 487 paint.fontMetrics().ascent() + 5, |
488 startText, View::OutlinedText); | 488 startText, PaintAssistant::OutlinedText); |
489 | 489 |
490 v->drawVisibleText | 490 v->drawVisibleText |
491 (paint, xorigin + 5, | 491 (paint, xorigin + 5, |
492 paint.fontMetrics().ascent() + paint.fontMetrics().height() + 10, | 492 paint.fontMetrics().ascent() + paint.fontMetrics().height() + 10, |
493 endText, View::OutlinedText); | 493 endText, PaintAssistant::OutlinedText); |
494 | 494 |
495 v->drawVisibleText | 495 v->drawVisibleText |
496 (paint, xorigin + 5, | 496 (paint, xorigin + 5, |
497 paint.fontMetrics().ascent() + 2*paint.fontMetrics().height() + 15, | 497 paint.fontMetrics().ascent() + 2*paint.fontMetrics().height() + 15, |
498 durationText, View::OutlinedText); | 498 durationText, PaintAssistant::OutlinedText); |
499 } | 499 } |
500 */ | 500 */ |
501 } | 501 } |
502 | 502 |
503 int | 503 int |