From a589ec7129a4b6dd5cf011636b30b212ed4607b6 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.8 6.5 5.15 Change-Id: Ib69d72540f094542dbcfc0684e2eec5f90aa532a Reviewed-by: Richard Moe Gustavsen (cherry picked from commit 21c9aac20abd700cf9f4bcacbbbe7751eb0aa364) Reviewed-by: Qt Cherry-pick Bot --- 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 c1fe3601d17..15544280669 100644 --- a/src/widgets/widgets/qdockwidget_p.h +++ b/src/widgets/widgets/qdockwidget_p.h @@ -123,7 +123,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;