forked from qt-creator/qt-creator
QmlDesigner: Fix ColorEditor anchor warning
Fix warning caused by the ColorEditor. Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. Change-Id: I58a618054e7e269e770aa53585472474a1b77cdd Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Henning Gründl
parent
180c990dff
commit
7f748acc3e
@@ -216,19 +216,15 @@ SecondColumnLayout {
|
||||
|
||||
property alias active: popupLoader.loader.active
|
||||
property Loader loader: Loader {
|
||||
parent: colorEditor
|
||||
parent: preview
|
||||
active: colorEditor.supportGradient
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: 0
|
||||
|
||||
sourceComponent: ColorEditorPopup {
|
||||
id: cePopup
|
||||
x: cePopup.__defaultX
|
||||
y: cePopup.__defaultY
|
||||
}
|
||||
onLoaded: {
|
||||
popupLoader.dialog.initEditor()
|
||||
}
|
||||
onLoaded: popupLoader.dialog.initEditor()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user