summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qlayout.h
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-11-01 20:29:59 +0100
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-11-02 14:25:03 +0100
commitd76b9d86e85ed7c0705209caca40b7a0efc71e14 (patch)
tree57254eb3b8f7fbb6970858dbb64e0795167e4f69 /src/widgets/kernel/qlayout.h
parent3b8d37b1f04acf60ceb144bfa5ed82e72e59a255 (diff)
QLayout: unify the constructors
Drive-by, make QLayout constructor explicit, as it should have always been. [ChangeLog][QtWidgets][QLayout] The QLayout constructor taking a QWidget pointer is now explicit. Change-Id: If6accfb2e7e810fa08adacea9e674c99121f6bc6 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/widgets/kernel/qlayout.h')
-rw-r--r--src/widgets/kernel/qlayout.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/widgets/kernel/qlayout.h b/src/widgets/kernel/qlayout.h
index 0a887e833c..0377aa62b3 100644
--- a/src/widgets/kernel/qlayout.h
+++ b/src/widgets/kernel/qlayout.h
@@ -77,8 +77,7 @@ public:
};
Q_ENUM(SizeConstraint)
- QLayout(QWidget *parent);
- QLayout();
+ explicit QLayout(QWidget *parent = nullptr);
~QLayout();
virtual int spacing() const;