Remove Knob::setHtmlLabel (#7993)
* Remove Knob::setHtmlLabel Remove the unused method `Knob::setHtmlLabel` and its associated members. This removes some unnecessary complexity from the code. * Public label methods Make `Knob::setLabel` public. Add `Knob::getLabel` for completeness. * Delegate in KnobControl::setText Make `KnobControl::setText` delegate to the `Knob` instance now that `Knob::setLabel` is public again.
This commit is contained in:
committed by
GitHub
parent
a1da660741
commit
4c3f8191af
@@ -136,7 +136,8 @@ public:
|
||||
|
||||
Knob( const Knob& other ) = delete;
|
||||
|
||||
void setHtmlLabel( const QString &htmltxt );
|
||||
const QString& getLabel() const;
|
||||
void setLabel(const QString& txt);
|
||||
|
||||
void setTotalAngle( float angle );
|
||||
|
||||
@@ -167,8 +168,6 @@ public:
|
||||
|
||||
|
||||
protected:
|
||||
void setLabel(const QString& txt);
|
||||
|
||||
void paintEvent(QPaintEvent*) override;
|
||||
|
||||
void changeEvent(QEvent * ev) override;
|
||||
@@ -216,8 +215,6 @@ private:
|
||||
|
||||
QString m_label;
|
||||
bool m_fixedFontSizeLabelRendering = false;
|
||||
bool m_isHtmlLabel;
|
||||
QTextDocument* m_tdRenderer;
|
||||
|
||||
std::unique_ptr<QPixmap> m_knobPixmap;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user