summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qgridlayout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/kernel/qgridlayout.cpp')
-rw-r--r--src/widgets/kernel/qgridlayout.cpp21
1 files changed, 4 insertions, 17 deletions
diff --git a/src/widgets/kernel/qgridlayout.cpp b/src/widgets/kernel/qgridlayout.cpp
index 3a1d89573c..121bae0352 100644
--- a/src/widgets/kernel/qgridlayout.cpp
+++ b/src/widgets/kernel/qgridlayout.cpp
@@ -1077,6 +1077,10 @@ QRect QGridLayoutPrivate::cellRect(int row, int col) const
There can be only one top-level layout for a widget. It is returned
by QWidget::layout().
+ If \a parent is \nullptr, then you must insert this grid layout
+ into another layout, or set it as a widget's layout using
+ QWidget::setLayout().
+
\sa QWidget::setLayout()
*/
QGridLayout::QGridLayout(QWidget *parent)
@@ -1087,23 +1091,6 @@ QGridLayout::QGridLayout(QWidget *parent)
}
/*!
- Constructs a new grid layout.
-
- You must insert this grid into another layout. You can insert
- widgets and layouts into this layout at any time, but laying out
- will not be performed before this is inserted into another layout.
-*/
-QGridLayout::QGridLayout()
- : QLayout(*new QGridLayoutPrivate, nullptr, nullptr)
-{
- Q_D(QGridLayout);
- d->expand(1, 1);
-}
-
-
-
-
-/*!
\internal (mostly)
Sets the positioning mode used by addItem(). If \a orient is