/* Nice icons */
#define BI( a,b) QIcon a##_icon = QIcon( QPixmap( b ))
- BI( audio, ":/pixmaps/advprefs_audio.png" );
- BI( video, ":/pixmaps/advprefs_video.png" );
- BI( input, ":/pixmaps/advprefs_codec.png" );
- BI( sout, ":/pixmaps/advprefs_sout.png" );
- BI( advanced, ":/pixmaps/advprefs_extended.png" );
- BI( playlist, ":/pixmaps/advprefs_playlist.png" );
- BI( interface, ":/pixmaps/advprefs_intf.png" );
+ BI( audio, ":/advprefs_audio" );
+ BI( video, ":/advprefs_video" );
+ BI( input, ":/advprefs_codec" );
+ BI( sout, ":/advprefs_sout" );
+ BI( advanced, ":/advprefs_extended" );
+ BI( playlist, ":/advprefs_playlist" );
+ BI( interface, ":/advprefs_intf" );
#undef BI
/* Build the tree for the main module */
- const module_t *p_module = module_GetMainModule( p_intf );
+ module_t *p_module = module_GetMainModule( p_intf );
/* Initialisation and get the confsize */
PrefsItemData *data = NULL;
vlc_object_release( (vlc_object_t*)p_module );
- vlc_list_t *p_list = vlc_list_find( p_this, VLC_OBJECT_MODULE,
+ vlc_list_t *p_list = vlc_list_find( p_intf, VLC_OBJECT_MODULE,
FIND_ANYWHERE );
/* Build the tree of plugins */
for( int i_index = 0; i_index < p_list->i_count; i_index++ )
if( data->i_type == TYPE_CATEGORY )
return;
else if( data->i_type == TYPE_MODULE )
- p_module = module_Find( VLC_OBJECT(p_intf), data->psz_name );
+ p_module = module_Find( p_intf, data->psz_name );
else
{
- p_module = module_Find( VLC_OBJECT(p_intf), "main" );
+ p_module = module_GetMainModule( p_intf );
assert( p_module );
}
i_line++;
}
box = new QGroupBox( qtr( p_item->psz_text ) );
+ box->hide();
boxlayout = new QGridLayout();
}
/* Only one hotkey control */
if( box )
{
box->setLayout( boxlayout );
+ box->show();
layout->addWidget( box, i_line, 0, 1, -1 );
}
c->doApply( p_intf );
}
}
+
void AdvPrefsPanel::clean()
{}
+
+AdvPrefsPanel::~AdvPrefsPanel()
+{
+ qDeleteAll( controls ); controls.clear();
+}
+