QmlDesigner: Fix ColorEditor closing

Fix ColorEditorPopup closing when opening gradient dialog.

Pick-to: qds/4.5
Change-Id: I438bd41d2efff30b372c04bc17c85210811cd0ff
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
This commit is contained in:
Henning Gruendl
2024-05-07 18:04:03 +02:00
committed by Henning Gründl
parent 924019e8c2
commit c29f514543
2 changed files with 3 additions and 0 deletions

View File

@@ -246,6 +246,7 @@ SecondColumnLayout {
supportGradient: colorEditor.supportGradient
width: popupDialog.contentWidth
visible: popupDialog.visible
parentWindow: popupDialog.window
}
onLoaded: {

View File

@@ -33,6 +33,8 @@ Column {
property alias gradientModel: gradientModel
property Window parentWindow: null
property bool isInValidState: false
readonly property real twoColumnWidth: (colorColumn.width - StudioTheme.Values.controlGap) * 0.5