diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2012-04-12 01:03:19 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-12 01:58:12 +0200 |
commit | 113af5706193e942225b66b22ef1ac89f5c1d2da (patch) | |
tree | e916c13b1d39cfa0fc750e704fe5bd38cd251761 /src/widgets/kernel/qboxlayout.h | |
parent | a0a1595185a07fb2e5b9f95cd6075b65c2bd03a5 (diff) |
Make QBoxLayout::insertItem() public.
This commit addresses a Qt 5 to-do comment in the code. The method was
already protected (so could already be made public by sub-classing),
and already has documentation in qboxlayout.cpp.
Task-number: QTBUG-25098
Change-Id: I5b51d34be8180becb63b8ad291879620f265bbec
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/widgets/kernel/qboxlayout.h')
-rw-r--r-- | src/widgets/kernel/qboxlayout.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/widgets/kernel/qboxlayout.h b/src/widgets/kernel/qboxlayout.h index aac46ef1ec..9b1dace5ed 100644 --- a/src/widgets/kernel/qboxlayout.h +++ b/src/widgets/kernel/qboxlayout.h @@ -84,6 +84,7 @@ public: void insertSpacerItem(int index, QSpacerItem *spacerItem); void insertWidget(int index, QWidget *widget, int stretch = 0, Qt::Alignment alignment = 0); void insertLayout(int index, QLayout *layout, int stretch = 0); + void insertItem(int index, QLayoutItem *); int spacing() const; void setSpacing(int spacing); @@ -107,9 +108,6 @@ public: QLayoutItem *takeAt(int); int count() const; void setGeometry(const QRect&); -protected: - // ### Qt 5: make public - void insertItem(int index, QLayoutItem *); private: Q_DISABLE_COPY(QBoxLayout) |