vlc_linux/vlc-3.0.16/modules/gui/qt/dialogs/preferences.cpp
/* Changing from one Advanced Panel to another */
Changing from one Advanced Panel to another
Changing from one Advanced Panel to another
void PrefsDialog::changeAdvPanel( QTreeWidgetItem *item )
{
    if( item == NULL ) return;
    PrefsItemData *data = item->data( 0, Qt::UserRole ).value<PrefsItemData*>();
    if( !data->panel )
    {
        data->panel = new AdvPrefsPanel( p_intf, advanced_panels_stack, data );
        advanced_panels_stack->insertWidget( advanced_panels_stack->count(),
                                             data->panel );
    }
    advanced_panels_stack->setCurrentWidget( data->panel );
}
void PrefsDialog :: changeAdvPanel ( QTreeWidgetItem * item ) { if ( item == NULL ) return ; PrefsItemData * data = item -> data ( 0 , Qt :: UserRole ) . value < PrefsItemData * > ( ) ; if ( ! data -> panel ) { data -> panel = new AdvPrefsPanel ( p_intf , advanced_panels_stack , data ) ; advanced_panels_stack -> insertWidget ( advanced_panels_stack -> count ( ) , data -> panel ) ; } advanced_panels_stack -> setCurrentWidget ( data -> panel ) ; }
Changing from one Advanced Panel to another
Changing from one Advanced Panel to another