#include <vlc_config_cat.h>
#include <vlc_intf_strings.h>
+#include <vlc_modules.h>
#include <assert.h>
#define ITEM_HEIGHT 25
}
QLabel *titleLabel = new QLabel( head );
- QFont titleFont = QApplication::font( static_cast<QWidget*>(0) );
+ QFont titleFont = QApplication::font();
titleFont.setPointSize( titleFont.pointSize() + 6 );
titleLabel->setFont( titleFont );
( p_item->i_type == CONFIG_CATEGORY ||
p_item->i_type == CONFIG_SUBCATEGORY ) )
break;
- if( p_item->b_internal == true ) continue;
+ if( p_item->b_internal ) continue;
if( p_item->i_type == CONFIG_SECTION )
{
boxlayout = new QGridLayout();
}
/* Only one hotkey control */
- if( has_hotkey && p_item->i_type & CONFIG_ITEM && p_item->psz_name &&
- strstr( p_item->psz_name, "key-" ) )
- continue;
- if( p_item->i_type & CONFIG_ITEM && p_item->psz_name &&
- strstr( p_item->psz_name, "key-" ) )
+ if( (p_item->i_type & CONFIG_ITEM) == CONFIG_ITEM_KEY )
+ {
+ if( has_hotkey )
+ continue;
has_hotkey = true;
+ }
ConfigControl *control;
if( ! box )
void AdvPrefsPanel::apply()
{
- QList<ConfigControl *>::Iterator i;
- for( i = controls.begin() ; i != controls.end() ; i++ )
- {
- ConfigControl *c = qobject_cast<ConfigControl *>(*i);
- c->doApply( p_intf );
- }
+ foreach ( ConfigControl *cfg, controls )
+ cfg->doApply();
}
void AdvPrefsPanel::clean()