Remove setHtmlLabel

This commit is contained in:
Michael Gregorius
2023-07-08 14:17:18 +02:00
parent b748c3ff33
commit fdad869d96
2 changed files with 0 additions and 25 deletions

View File

@@ -93,7 +93,6 @@ public:
setUnit( _txt_after );
}
void setLabel( const QString & txt );
void setHtmlLabel( const QString &htmltxt );
void setTotalAngle( float angle );

View File

@@ -116,30 +116,6 @@ void FloatModelEditorBase::setLabel( const QString & txt )
}
void FloatModelEditorBase::setHtmlLabel(const QString &htmltxt)
{
m_label = htmltxt;
m_isHtmlLabel = true;
// Put the rendered HTML content into cache
if (!m_tdRenderer)
{
m_tdRenderer = new QTextDocument(this);
}
m_tdRenderer->setHtml(QString("<span style=\"color:%1;\">%2</span>").arg(textColor().name(), m_label));
if (m_knobPixmap)
{
setFixedSize(m_knobPixmap->width(),
m_knobPixmap->height() + 15);
}
update();
}
void FloatModelEditorBase::setTotalAngle( float angle )
{
if( angle < 10.0 )