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>
bb10
Jason McDonald 2012-04-12 01:03:19 +10:00 committed by Qt by Nokia
parent a0a1595185
commit 113af57061
1 changed files with 1 additions and 3 deletions

View File

@ -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)