QColorDialog: React to HSV values during manual edit instead of change
The existing signal connection can cause a loop and undefined behavior in the interaction between the line edit for a hex rgb color and the individual rgb values. => Change connection to textEdited, to react only on manual editing. Fixes: QTBUG-115189 Pick-to: 6.6 6.5 Change-Id: Ie3062c575652b905a8ab16edb2f5f77f8d150f36 Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>bb10
parent
d164ec4abe
commit
4a26ae1b27
|
|
@ -1316,7 +1316,7 @@ QColorShower::QColorShower(QColorDialog *parent)
|
|||
connect(gEd, &QSpinBox::valueChanged, this, &QColorShower::rgbEd);
|
||||
connect(bEd, &QSpinBox::valueChanged, this, &QColorShower::rgbEd);
|
||||
connect(alphaEd, &QSpinBox::valueChanged, this, &QColorShower::rgbEd);
|
||||
connect(htEd, &QLineEdit::textChanged, this, &QColorShower::htmlEd);
|
||||
connect(htEd, &QLineEdit::textEdited, this, &QColorShower::htmlEd);
|
||||
|
||||
retranslateStrings();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue