Remove label related code
Remove setLabel and the members m_label and m_isHtmlLabel.
This commit is contained in:
@@ -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<QPixmap> m_knobPixmap;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user