Merge pull request #1360 from namecheap/bugfix/nc_custom-color-is-always-black

Custom color is always black
This commit is contained in:
borgmanJeremy
2021-02-19 12:46:11 -06:00
committed by GitHub
5 changed files with 6 additions and 30 deletions

View File

@@ -117,22 +117,6 @@ QVector<QColor> ConfigHandler::getUserColors()
return colors;
}
void ConfigHandler::setUserColors(const QVector<QColor>& l)
{
QStringList hexColors;
for (const QColor& color : l) {
if (color.isValid()) {
hexColors.append(color.name());
} else {
hexColors.append(QStringLiteral("picker"));
}
}
m_settings.setValue(QStringLiteral("userColors"),
QVariant::fromValue(hexColors));
}
QString ConfigHandler::savePath()
{
return m_settings.value(QStringLiteral("savePath")).toString();
@@ -301,7 +285,7 @@ int ConfigHandler::drawThicknessValue()
return res;
}
void ConfigHandler::setdrawThickness(const int thickness)
void ConfigHandler::setDrawThickness(const int thickness)
{
m_settings.setValue(QStringLiteral("drawThickness"), thickness);
}