QGtk3ColorDialogHelper: ensure currentColorChanged() gets emitted
GTK does not emit the "color-activated" signal as expected, so make sure currentColorChanged() gets emitted the same way it's done for QGtk3FontDialogHelper. This ensures that QML bindings get re-evaluated as appropriate. Change-Id: Id00f144e8b9a08afee57ef6a6033972cdc4307b0 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
This commit is contained in:
parent
d23c2e005f
commit
cf53aa21bf
@ -215,8 +215,10 @@ QColor QGtk3ColorDialogHelper::currentColor() const
|
||||
|
||||
void QGtk3ColorDialogHelper::onAccepted()
|
||||
{
|
||||
const QColor color = currentColor();
|
||||
emit currentColorChanged(color);
|
||||
emit accept();
|
||||
emit colorSelected(currentColor());
|
||||
emit colorSelected(color);
|
||||
}
|
||||
|
||||
void QGtk3ColorDialogHelper::onColorChanged(QGtk3ColorDialogHelper *dialog)
|
||||
|
Loading…
Reference in New Issue
Block a user