Remove label related code

Remove setLabel and the members m_label and m_isHtmlLabel.
This commit is contained in:
Michael Gregorius
2023-07-08 14:27:50 +02:00
parent 18722203f3
commit 655b65bd95
3 changed files with 0 additions and 21 deletions

View File

@@ -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;
}

View File

@@ -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<int>( 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 )