fix eliding issue on fx mixer fader (#3241)

This commit is contained in:
Steffen Baranowsky
2017-01-24 08:54:10 +01:00
committed by GitHub
parent c5aa22663e
commit a4c65b52c9

View File

@@ -186,8 +186,8 @@ void FxLine::drawFxLine( QPainter* p, const FxLine *fxLine, bool isActive, bool
QString FxLine::elideName( const QString & name )
{
const int maxTextHeight = 70;
QFontMetrics metrics( font() );
const int maxTextHeight = 60;
QFontMetrics metrics( m_renameLineEdit->font() );
QString elidedName = metrics.elidedText( name, Qt::ElideRight, maxTextHeight );
return elidedName;
}