From: Jean-Baptiste Kempf Date: Mon, 11 Feb 2008 06:26:22 +0000 (+0000) Subject: Qt4 - network policy in Sprefs and in privacy policy dialog. X-Git-Tag: 0.9.0-test0~2699 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=6f2c37e461c74585b4359e757860ae14f1c86b3a;p=vlc Qt4 - network policy in Sprefs and in privacy policy dialog. --- diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp index 9e25a52dd7..31936d5ee5 100644 --- a/modules/gui/qt4/components/simple_preferences.cpp +++ b/modules/gui/qt4/components/simple_preferences.cpp @@ -435,8 +435,11 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, optionWidgets.append( ui.skins ); optionWidgets.append( ui.qt4 ); - CONFIG_GENERIC( "album-art", IntegerList, ui.artFetchLabel, artFetcher ); + CONFIG_GENERIC( "album-art", IntegerList, ui.artFetchLabel, + artFetcher ); CONFIG_GENERIC( "fetch-meta", Bool, NULL, metaFetcher ); + CONFIG_GENERIC( "security-policy", IntegerList, + ui.netPolicyLabel, netPolicyBox ); #ifdef UPDATE_CHECK CONFIG_GENERIC( "qt-updates-notif", Bool, NULL, updatesBox ); CONFIG_GENERIC_NO_BOOL( "qt-updates-days", Integer, NULL, diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp index 620fc54200..63fbe6f133 100644 --- a/modules/gui/qt4/main_interface.cpp +++ b/modules/gui/qt4/main_interface.cpp @@ -537,6 +537,8 @@ int MainInterface::privacyDialog( QList controls ) CONFIG_GENERIC_NOBOOL( "qt-updates-notif", Bool ); line++; CONFIG_GENERIC_NOBOOL( "qt-updates-days", Integer ); line++; #endif + CONFIG_GENERIC( "security-policy", IntegerList ); line++; + QPushButton *ok = new QPushButton( qtr( "Ok" ) ); gLayout->addWidget( ok, 2, 2 ); diff --git a/modules/gui/qt4/ui/sprefs_interface.ui b/modules/gui/qt4/ui/sprefs_interface.ui index bf5864d2b3..5bf9650a5d 100644 --- a/modules/gui/qt4/ui/sprefs_interface.ui +++ b/modules/gui/qt4/ui/sprefs_interface.ui @@ -6,7 +6,7 @@ 0 0 483 - 583 + 617 @@ -239,6 +239,16 @@ + + + + _("Network policy") + + + + + +