diff --git a/include/FloatModelEditorBase.h b/include/FloatModelEditorBase.h index a0fb44f35..1a8b6e40f 100644 --- a/include/FloatModelEditorBase.h +++ b/include/FloatModelEditorBase.h @@ -93,7 +93,6 @@ public: setUnit( _txt_after ); } void setLabel( const QString & txt ); - void setHtmlLabel( const QString &htmltxt ); void setTotalAngle( float angle ); diff --git a/src/gui/widgets/FloatModelEditorBase.cpp b/src/gui/widgets/FloatModelEditorBase.cpp index 21be78c56..535c0aa9a 100644 --- a/src/gui/widgets/FloatModelEditorBase.cpp +++ b/src/gui/widgets/FloatModelEditorBase.cpp @@ -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("%2").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 )