Skip to content

Commit

Permalink
color label, setColor emits colorChanged
Browse files Browse the repository at this point in the history
  • Loading branch information
SKefalidis committed Apr 28, 2020
1 parent df0e501 commit 0b55ae9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions awl/colorlabel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ ColorLabel::~ColorLabel()

void ColorLabel::setColor(const QColor& c)
{
bool changed = _color != c;
_color = c;
update();
if (changed)
emit this->colorChanged(_color);
}

//---------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions mscore/mixer/mixerdetails.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ void MixerDetails::updateFromTrack()
chorusSpinBox->setValue(0);
portSpinBox->setValue(0);
channelSpinBox->setValue(0);
trackColorLabel->blockSignals(true);
trackColorLabel->setColor(QColor());
trackColorLabel->blockSignals(false);

drumkitCheck->setEnabled(false);
patchCombo->setEnabled(false);
Expand Down

0 comments on commit 0b55ae9

Please sign in to comment.