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:
J-P Nurmi 2016-06-20 10:33:30 +02:00
parent d23c2e005f
commit cf53aa21bf

View File

@ -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)