Qt4 - network policy in Sprefs and in privacy policy dialog.
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 11 Feb 2008 06:26:22 +0000 (06:26 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 11 Feb 2008 06:26:22 +0000 (06:26 +0000)
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/ui/sprefs_interface.ui

index 9e25a52..31936d5 100644 (file)
@@ -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,
index 620fc54..63fbe6f 100644 (file)
@@ -537,6 +537,8 @@ int MainInterface::privacyDialog( QList<ConfigControl *> 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 );
index bf5864d..5bf9650 100644 (file)
@@ -6,7 +6,7 @@
     <x>0</x>
     <y>0</y>
     <width>483</width>
-    <height>583</height>
+    <height>617</height>
    </rect>
   </property>
   <property name="sizePolicy" >
         </property>
        </widget>
       </item>
+      <item row="3" column="0" >
+       <widget class="QLabel" name="netPolicyLabel" >
+        <property name="text" >
+         <string>_("Network policy")</string>
+        </property>
+       </widget>
+      </item>
+      <item row="3" column="1" colspan="2" >
+       <widget class="QComboBox" name="netPolicyBox" />
+      </item>
      </layout>
     </widget>
    </item>