Ejemplo n.º 1
0
KNPreferenceItemSwitcher::KNPreferenceItemSwitcher(QWidget *parent) :
    KNPreferenceItemBase(parent)
{
    m_switcher=new KNAnimeColorSwitcher(this);
    //Add the control widget.
    insertStretch();
    insertControlWidget(m_switcher);
}
Ejemplo n.º 2
0
/*!
    Adds a stretchable space (a QSpacerItem) with zero minimum
    size and stretch factor \a stretch to the end of this box layout.

    \sa insertStretch(), addItem(), QSpacerItem
*/
void QBoxLayout::addStretch(int stretch)
{
    insertStretch(-1, stretch);
}
Ejemplo n.º 3
0
void WBoxLayout::addStretch(int stretch)
{
  insertStretch(count(), stretch);
}