summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2025-04-08 10:29:32 +0200
committerMarc Mutz <marc.mutz@qt.io>2025-04-10 18:47:21 +0200
commit21c9aac20abd700cf9f4bcacbbbe7751eb0aa364 (patch)
tree606552421468e487f9743aba6f7fdb231730d44b /src
parent2e3d39130c318da54d77775e82c6c699f236ddf8 (diff)
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.9 6.8 6.5 5.15 Change-Id: Ib69d72540f094542dbcfc0684e2eec5f90aa532a Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/widgets/widgets/qdockwidget_p.h2
1 files changed, 1 insertions, 1 deletions
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;