From 9ea3890e2eedb73d278db76f4e85ad39d29bd7cd Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 8 Apr 2025 10:29:32 +0200 Subject: [PATCH] QDockWidgetLayout: mark the ctor explicit A QWidget* is not a faithful representation of a QDockWidgetLayout, so the ctor should be explicit, even if this is but a private class. Amends the start of the public history. Pick-to: 6.5 5.15 Change-Id: Ib69d72540f094542dbcfc0684e2eec5f90aa532a Reviewed-by: Richard Moe Gustavsen (cherry picked from commit 21c9aac20abd700cf9f4bcacbbbe7751eb0aa364) Reviewed-by: Qt Cherry-pick Bot (cherry picked from commit a589ec7129a4b6dd5cf011636b30b212ed4607b6) --- src/widgets/widgets/qdockwidget_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/widgets/qdockwidget_p.h b/src/widgets/widgets/qdockwidget_p.h index 6d3d3077298..f930f0bd297 100644 --- a/src/widgets/widgets/qdockwidget_p.h +++ b/src/widgets/widgets/qdockwidget_p.h @@ -117,7 +117,7 @@ class Q_WIDGETS_EXPORT QDockWidgetLayout : public QLayout { Q_OBJECT public: - QDockWidgetLayout(QWidget *parent = nullptr); + explicit QDockWidgetLayout(QWidget *parent = nullptr); ~QDockWidgetLayout(); void addItem(QLayoutItem *item) override; QLayoutItem *itemAt(int index) const override;