Skip to content

Commit

Permalink
Rename to getConfigKeyColorPalette to avoid overloading
Browse files Browse the repository at this point in the history
  • Loading branch information
danferns committed Jul 31, 2024
1 parent 23dc2ea commit 8fa1c92
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/preferences/colorpalettesettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ ColorPalette ColorPaletteSettings::getKeyColorPalette(
mixxx::PredefinedColorPalettes::kDefaultKeyColorPalette);
}

ColorPalette ColorPaletteSettings::getKeyColorPalette() const {
ColorPalette ColorPaletteSettings::getConfigKeyColorPalette() const {
QString name = m_pConfig->getValueString(kKeyColorPaletteConfigKey);
return getKeyColorPalette(name);
}
Expand Down
2 changes: 1 addition & 1 deletion src/preferences/colorpalettesettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ColorPaletteSettings {
void setTrackColorPalette(const ColorPalette& colorPalette);

ColorPalette getKeyColorPalette(const QString& name) const;
ColorPalette getKeyColorPalette() const;
ColorPalette getConfigKeyColorPalette() const;
void setKeyColorPalette(const ColorPalette& colorPalette);

ColorPalette getColorPalette(
Expand Down
4 changes: 2 additions & 2 deletions src/preferences/dialog/dlgprefcolors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void DlgPrefColors::slotUpdate() {
slotHotcuePaletteIndexChanged(comboBoxHotcueColors->currentIndex());

const ColorPalette keyPalette =
m_colorPaletteSettings.getKeyColorPalette();
m_colorPaletteSettings.getConfigKeyColorPalette();
comboBoxKeyColors->setCurrentText(QCoreApplication::translate(
"PredefinedColorPalettes", qPrintable(keyPalette.getName())));

Expand Down Expand Up @@ -247,7 +247,7 @@ void DlgPrefColors::slotApply() {
if (!bKeyColorPaletteFound) {
m_colorPaletteSettings.setKeyColorPalette(
m_colorPaletteSettings.getColorPalette(keyColorPaletteName,
m_colorPaletteSettings.getKeyColorPalette()));
m_colorPaletteSettings.getConfigKeyColorPalette()));
}

int hotcueColorIndex = comboBoxHotcueDefaultColor->currentIndex();
Expand Down
2 changes: 1 addition & 1 deletion src/skin/legacy/legacyskinparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1572,7 +1572,7 @@ QWidget* LegacySkinParser::parseLibrary(const QDomElement& node) {

ColorPaletteSettings colorPaletteSettings(m_pConfig);
ColorPalette colorPalette = colorPaletteSettings.getTrackColorPalette();
BaseTrackTableModel::setKeyColorPalette(colorPaletteSettings.getKeyColorPalette());
BaseTrackTableModel::setKeyColorPalette(colorPaletteSettings.getConfigKeyColorPalette());

const auto applyPlayedTrackColor =
m_pConfig->getValue(
Expand Down

0 comments on commit 8fa1c92

Please # to comment.