Exemplo n.º 1
0
void PMSpinBoxAction::unplug( QWidget *w )
{
    if( !w->inherits( "KToolBar" ) )
        return;

    KToolBar *toolBar = (KToolBar *)w;

    int idx = findContainer( w );

    toolBar->removeItem( itemId( idx ) );

    removeContainer( idx );
    m_spinBox = 0L;
}
Exemplo n.º 2
0
void PMLabelAction::unplug( QWidget *widget )
{
    if( widget->inherits( "KToolBar" ) )
    {
        KToolBar* bar = ( KToolBar* ) widget;

        int idx = findContainer( bar );

        if( idx != -1 )
        {
            bar->removeItem( itemId( idx ) );
            removeContainer( idx );
        }

        m_button = 0;
        return;
    }
}