[vlmc-devel] commit: SettingsWidget: Don't display private vars ( Hugo Beauzée-Luyssen )
git at videolan.org
git at videolan.org
Sun Jun 20 19:21:36 CEST 2010
vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sun Jun 20 19:18:45 2010 +0200| [e12c2e97f913fe6ae7cc12dbc43082b3fec7f681] | committer: Hugo Beauzée-Luyssen
SettingsWidget: Don't display private vars
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=e12c2e97f913fe6ae7cc12dbc43082b3fec7f681
---
src/Gui/settings/PreferenceWidget.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/Gui/settings/PreferenceWidget.cpp b/src/Gui/settings/PreferenceWidget.cpp
index 9a42b52..d26ab76 100644
--- a/src/Gui/settings/PreferenceWidget.cpp
+++ b/src/Gui/settings/PreferenceWidget.cpp
@@ -54,6 +54,9 @@ PreferenceWidget::PreferenceWidget( const char *category, SettingsManager::Type
foreach ( SettingValue* s, settings.values() )
{
+ //Do not display private variables
+ if ( ( s->flags() & SettingValue::Private ) != 0 )
+ continue ;
ISettingsCategoryWidget *widget = widgetFactory( s );
QLabel *label = new QLabel( tr( s->name() ), this );
label->setToolTip( tr( s->description() ) );
More information about the Vlmc-devel
mailing list