diff --git a/src/qmlcontrols/kquickcontrols/ColorButton.qml b/src/qmlcontrols/kquickcontrols/ColorButton.qml --- a/src/qmlcontrols/kquickcontrols/ColorButton.qml +++ b/src/qmlcontrols/kquickcontrols/ColorButton.qml @@ -53,6 +53,12 @@ */ property alias showAlphaChannel: colorDialog.showAlphaChannel + /** + * This signal is emitted when the color dialog has been accepted + * + * @since 5.61 + */ + signal accepted(color color) readonly property real _buttonMarigns: 4 // same as QStyles. Remove if we can get this provided by the QQC theme @@ -101,6 +107,7 @@ QtDialogs.ColorDialog { id: colorDialog + onAccepted: colorPicker.accepted(color) } onClicked: {