From a59dd941ab45f203587618e0f57522fa46802624 Mon Sep 17 00:00:00 2001 From: Tasuku Suzuki Date: Tue, 28 Mar 2023 15:46:45 +0900 Subject: ScreenCapture: Fix a runtime warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit QLayout: Attempting to add QLayout "" to ScreenCapturePreview "", which already has a layout Change-Id: Ic5b01f11ffa49490e4930214e1422109a06504fe Reviewed-by: Lars Sutterud Reviewed-by: Tor Arne Vestbø --- examples/multimedia/screencapture/screencapturepreview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/multimedia/screencapture/screencapturepreview.cpp b/examples/multimedia/screencapture/screencapturepreview.cpp index 7b48b7414..8a85904ba 100644 --- a/examples/multimedia/screencapture/screencapturepreview.cpp +++ b/examples/multimedia/screencapture/screencapturepreview.cpp @@ -32,7 +32,7 @@ ScreenCapturePreview::ScreenCapturePreview(QWidget *parent) , wIdButton(new QPushButton("Confirm", this)) , startStopButton(new QPushButton("Stop screencapture", this)) , gridLayout(new QGridLayout(this)) - , hBoxLayout(new QHBoxLayout(this)) + , hBoxLayout(new QHBoxLayout) { // Get lists of screens and windows: -- cgit v1.2.1