Skip to content

Commit

Permalink
Fix Fader pixmaps (#7041)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakertooth authored Jan 1, 2024
1 parent f79695e commit 4049cc2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/Fader.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ class LMMS_EXPORT Fader : public QWidget, public FloatModelView
QElapsedTimer m_lastPeakTimer_L;
QElapsedTimer m_lastPeakTimer_R;

QPixmap m_back = embed::getIconPixmap("fader_background");
QPixmap m_leds = embed::getIconPixmap("fader_leds");
QPixmap m_knob = embed::getIconPixmap("fader_knob");
QPixmap m_back;
QPixmap m_leds;
QPixmap m_knob;

bool m_levelsDisplayedInDBFS;

Expand Down
6 changes: 6 additions & 0 deletions src/gui/widgets/Fader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ Fader::Fader( FloatModel * _model, const QString & _name, QWidget * _parent ) :
m_persistentPeak_R( 0.0 ),
m_fMinPeak( 0.01f ),
m_fMaxPeak( 1.1 ),
m_back(embed::getIconPixmap("fader_background")),
m_leds(embed::getIconPixmap("fader_leds")),
m_knob(embed::getIconPixmap("fader_knob")),
m_levelsDisplayedInDBFS(false),
m_moveStartPoint( -1 ),
m_startValue( 0 ),
Expand Down Expand Up @@ -97,6 +100,9 @@ Fader::Fader( FloatModel * model, const QString & name, QWidget * parent, QPixma
m_persistentPeak_R( 0.0 ),
m_fMinPeak( 0.01f ),
m_fMaxPeak( 1.1 ),
m_back(*back),
m_leds(*leds),
m_knob(*knob),
m_levelsDisplayedInDBFS(false),
m_moveStartPoint( -1 ),
m_startValue( 0 ),
Expand Down

0 comments on commit 4049cc2

Please sign in to comment.