]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/preferences_widgets.cpp
Don't include config.h from the headers - refs #297.
[vlc] / modules / gui / qt4 / components / preferences_widgets.cpp
index d957344a91399566ab12d4f9cdead333e6aef47a..b7a2080538f893a9e0c85596223b172adf8e1ba2 100644 (file)
@@ -30,6 +30,9 @@
  *  - Improvements over WX
  *      - Validator for modulelist
  */
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include "components/preferences_widgets.hpp"
 #include "util/customwidgets.hpp"
@@ -607,11 +610,14 @@ ModuleListConfigControl::~ModuleListConfigControl()
        checkBoxListItem *cbl = new checkBoxListItem; \
 \
        CONNECT( cb, stateChanged( int ), this, onUpdate( int ) );\
-       cb->setToolTip( formatTooltip( qtr( module_GetLongName( p_parser ))));\
+       cb->setToolTip( formatTooltip( qtr( module_GetHelp( p_parser ))));\
        cbl->checkBox = cb; \
 \
        cbl->psz_module = strdup( module_GetObjName( p_parser ) ); \
        modules.push_back( cbl ); \
+\
+       if( p_item->value.psz && strstr( p_item->value.psz, cbl->psz_module ) ) \
+            cbl->checkBox->setChecked( true ); \
 }