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
parent
a0a1595185
commit
113af57061
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue