コード例 #1
0
ファイル: qboxlayout.cpp プロジェクト: FilipBE/qtextended
/*!
    Inserts \a layout at position \a index, with stretch factor \a
    stretch. If \a index is negative, the layout is added at the end.

    \a layout becomes a child of the box layout.

    \sa addLayout(), insertItem()
*/
void QBoxLayout::insertLayout(int index, QLayout *layout, int stretch)
{
    Q_D(QBoxLayout);
    addChildLayout(layout);
    if (index < 0)                                // append
        index = d->list.count();
    QBoxLayoutItem *it = new QBoxLayoutItem(layout, stretch);
    d->list.insert(index, it);
    invalidate();
}
コード例 #2
0
ファイル: QLayout_DhClass.cpp プロジェクト: bennofs/hsQt
void DhQLayout::DvhaddChildLayout(QLayout* x1) {
  return addChildLayout(x1);
}