Skip to content

Commit

Permalink
Merge pull request #2139 from Holzhaus/auto-assign-hotcue-color-snake…
Browse files Browse the repository at this point in the history
…-case

Use snake_case for auto_hotcue_colors control object
  • Loading branch information
uklotzde authored Jun 4, 2019
2 parents cf9fba5 + e95b17a commit dae01c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/engine/controls/cuecontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ void CueControl::hotcueSet(HotcueControl* pControl, double v) {
// TODO(XXX) deal with spurious signals
attachCue(pCue, hotcue);

if (getConfig()->getValue(ConfigKey("[Controls]", "AutoHotcueColors"), false)) {
if (getConfig()->getValue(ConfigKey("[Controls]", "auto_hotcue_colors"), false)) {
const QList<PredefinedColorPointer> predefinedColors = Color::kPredefinedColorsSet.allColors;
pCue->setColor(predefinedColors.at((hotcue % (predefinedColors.count() - 1)) + 1));
};
Expand Down
6 changes: 3 additions & 3 deletions src/preferences/dialog/dlgprefdeck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ DlgPrefDeck::DlgPrefDeck(QWidget * parent, MixxxMainWindow * mixxx,
this, SLOT(slotJumpToCueOnTrackLoadCheckbox(bool)));

// Automatically assign a color to new hot cues
m_bAssignHotcueColors = m_pConfig->getValue(ConfigKey("[Controls]", "AutoHotcueColors"), false);
m_bAssignHotcueColors = m_pConfig->getValue(ConfigKey("[Controls]", "auto_hotcue_colors"), false);
checkBoxAssignHotcueColors->setChecked(m_bAssignHotcueColors);
connect(checkBoxAssignHotcueColors, SIGNAL(toggled(bool)),
this, SLOT(slotAssignHotcueColorsCheckbox(bool)));
Expand Down Expand Up @@ -341,7 +341,7 @@ void DlgPrefDeck::slotUpdate() {
ConfigKey("[Controls]", "CueRecall"), false));

checkBoxAssignHotcueColors->setChecked(m_pConfig->getValue(
ConfigKey("[Controls]", "AutoHotcueColors"), false));
ConfigKey("[Controls]", "auto_hotcue_colors"), false));

double deck1RateRange = m_rateRangeControls[0]->get();
int index = ComboBoxRateRange->findData(static_cast<int>(deck1RateRange * 100));
Expand Down Expand Up @@ -579,7 +579,7 @@ void DlgPrefDeck::slotApply() {
!m_bDisallowTrackLoadToPlayingDeck);

m_pConfig->setValue(ConfigKey("[Controls]", "CueRecall"), !m_bJumpToCueOnTrackLoad);
m_pConfig->setValue(ConfigKey("[Controls]", "AutoHotcueColors"), m_bAssignHotcueColors);
m_pConfig->setValue(ConfigKey("[Controls]", "auto_hotcue_colors"), m_bAssignHotcueColors);

// Set rate range
setRateRangeForAllDecks(m_iRateRangePercent);
Expand Down

0 comments on commit dae01c7

Please sign in to comment.