Make text rendering consistent for TrackContentObjectViews

Add the method paintTextLabel to TrackContentObjectView. This methods
implements the painting of a given text on a given painter. The new
implementation does not draw any text label in case the trimmed text
becomes empty.

Use the method paintTextLabel to paint the text for automation patterns,
BB patterns and instrument patterns.

Adjust the style sheet of the classic and default theme by moving the
font definition from PatternView into TrackContentObjectView so that it
can be used by all inheriting classes.
This commit is contained in:
Michael Gregorius
2017-07-16 16:10:42 +02:00
parent bcdb5ecb5a
commit a23e344886
7 changed files with 35 additions and 62 deletions

View File

@@ -263,6 +263,8 @@ protected:
DataFile createTCODataFiles(const QVector<TrackContentObjectView *> & tcos) const;
virtual void paintTextLabel(QString const & text, QPainter & painter);
protected slots:
void updateLength();