diff --git a/include/FloatModelEditorBase.h b/include/FloatModelEditorBase.h index d9fbd957b..07e16bcde 100644 --- a/include/FloatModelEditorBase.h +++ b/include/FloatModelEditorBase.h @@ -85,7 +85,6 @@ public: setDescription( _txt_before ); setUnit( _txt_after ); } - void setLabel( const QString & txt ); void setTotalAngle( float angle ); @@ -161,8 +160,6 @@ private: static SimpleTextFloat * s_textFloat; - QString m_label; - bool m_isHtmlLabel; QTextDocument* m_tdRenderer; std::unique_ptr m_knobPixmap; diff --git a/src/gui/LadspaWidgetFactory.cpp b/src/gui/LadspaWidgetFactory.cpp index 70868e791..10344706f 100644 --- a/src/gui/LadspaWidgetFactory.cpp +++ b/src/gui/LadspaWidgetFactory.cpp @@ -70,7 +70,6 @@ QWidget * LadspaWidgetFactory::createWidget(LadspaControl * ladspaControl, QWidg { FloatModelEditorBase * fme = new FloatModelEditorBase(parent, name); fme->setModel(ladspaControl->knobModel()); - fme->setLabel(name); fme->setHintText(QObject::tr("Value:"), ""); return fme; } diff --git a/src/gui/widgets/FloatModelEditorBase.cpp b/src/gui/widgets/FloatModelEditorBase.cpp index 2d85ccd62..55e5bdb70 100644 --- a/src/gui/widgets/FloatModelEditorBase.cpp +++ b/src/gui/widgets/FloatModelEditorBase.cpp @@ -62,8 +62,6 @@ SimpleTextFloat * FloatModelEditorBase::s_textFloat = nullptr; FloatModelEditorBase::FloatModelEditorBase(QWidget * _parent, const QString & _name ) : QWidget( _parent ), FloatModelView( new FloatModel( 0, 0, 0, 1, nullptr, _name, true ), this ), - m_label( "" ), - m_isHtmlLabel(false), m_tdRenderer(nullptr), m_volumeKnob( false ), m_volumeRatio( 100.0, 0.0, 1000000.0 ), @@ -92,21 +90,6 @@ void FloatModelEditorBase::initUi( const QString & _name ) -void FloatModelEditorBase::setLabel( const QString & txt ) -{ - m_label = txt; - m_isHtmlLabel = false; - if( m_knobPixmap ) - { - setFixedSize(qMax( m_knobPixmap->width(), - horizontalAdvance(QFontMetrics(pointSizeF(font(), 6.5)), m_label)), - m_knobPixmap->height() + 10); - } - - update(); -} - - void FloatModelEditorBase::setTotalAngle( float angle ) { if( angle < 10.0 )