From 113af5706193e942225b66b22ef1ac89f5c1d2da Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Thu, 12 Apr 2012 01:03:19 +1000 Subject: 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 --- src/widgets/kernel/qboxlayout.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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) -- cgit v1.2.3