From b70565078f065442f4095b964f7f3d79f7c80d08 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Tue, 19 Nov 2024 08:35:36 +0100 Subject: [PATCH] QmlPreview: Fix layout warnings Fixes the "QLayout: Attempting to add QLayout "" to QmlProfiler::Internal::Quick3DFrameView "QmlProfiler.Quick3DFrame.Dock", which already has a layout" warnings. It appeared twice when starting the QML Profiler for Android app on emulator. Change-Id: I6f26be9a3e2f032a6ac2300fb31ca8e58a598d1b Reviewed-by: hjk --- src/plugins/qmlprofiler/quick3dframeview.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/qmlprofiler/quick3dframeview.cpp b/src/plugins/qmlprofiler/quick3dframeview.cpp index 3d0141d0ed9..64f51c9970f 100644 --- a/src/plugins/qmlprofiler/quick3dframeview.cpp +++ b/src/plugins/qmlprofiler/quick3dframeview.cpp @@ -54,13 +54,13 @@ Quick3DFrameView::Quick3DFrameView(QmlProfilerModelManager *profilerModelManager connect(m_compareFrameView.get(), &Quick3DMainView::gotoSourceLocation, this, &Quick3DFrameView::gotoSourceLocation); - auto groupLayout = new QVBoxLayout(this); + auto groupLayout = new QVBoxLayout; groupLayout->setContentsMargins(0,0,0,0); groupLayout->setSpacing(0); - auto hMainLayout = new QHBoxLayout(this); + auto hMainLayout = new QHBoxLayout; hMainLayout->setContentsMargins(0,0,0,0); hMainLayout->setSpacing(0); - auto hFrameLayout = new QHBoxLayout(this); + auto hFrameLayout = new QHBoxLayout; hFrameLayout->setContentsMargins(0,0,0,0); hFrameLayout->setSpacing(0); auto view3DComboBox = new QComboBox(this);