QColorDialog: use customColorCount() instead hardcoded value
A hardcoded value of 16 was used in QColorDialogPrivate::_q_addCustom() instead QColorDialogOptions::customColorCount() Fixes: QTBUG-58425 Change-Id: I7ae9881abd5926e0c6b118d5c84c3f259c545d35 Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
This commit is contained in:
parent
6114230996
commit
8637235e85
@ -1851,7 +1851,7 @@ void QColorDialogPrivate::_q_addCustom()
|
||||
QColorDialogOptions::setCustomColor(nextCust, cs->currentColor());
|
||||
if (custom)
|
||||
custom->update();
|
||||
nextCust = (nextCust+1) % 16;
|
||||
nextCust = (nextCust+1) % QColorDialogOptions::customColorCount();
|
||||
}
|
||||
|
||||
void QColorDialogPrivate::retranslateStrings()
|
||||
|
Loading…
x
Reference in New Issue
Block a user