Revert change for Qt6 deprecation

This commit is contained in:
Phil Taylor 2024-03-30 20:49:52 +00:00
parent 87c8cab9c2
commit f53d7dd411
4 changed files with 36 additions and 36 deletions

View file

@ -2090,7 +2090,7 @@ void settingswidget::setColorButtonOperations(QColor *colorStore,
}
getSetColor(d, e);
QColor t = d->getColor();
colorStore->fromString(t.name(QColor::HexArgb));
colorStore->setNamedColor(t.name(QColor::HexArgb));
//useCurrentColorPreset();
}
@ -2107,7 +2107,7 @@ void settingswidget::setColorLineEditOperations(QColor *colorStore,
QString colorStrValidated = setColorFromString(e->text(), d);
e->setText(colorStrValidated);
colorStore->fromString(colorStrValidated);
colorStore->setNamedColor(colorStrValidated);
//useCurrentColorPreset();
}