Commit 6f2c37e4 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - network policy in Sprefs and in privacy policy dialog.

parent 8460c203
...@@ -435,8 +435,11 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -435,8 +435,11 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
optionWidgets.append( ui.skins ); optionWidgets.append( ui.skins );
optionWidgets.append( ui.qt4 ); 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( "fetch-meta", Bool, NULL, metaFetcher );
CONFIG_GENERIC( "security-policy", IntegerList,
ui.netPolicyLabel, netPolicyBox );
#ifdef UPDATE_CHECK #ifdef UPDATE_CHECK
CONFIG_GENERIC( "qt-updates-notif", Bool, NULL, updatesBox ); CONFIG_GENERIC( "qt-updates-notif", Bool, NULL, updatesBox );
CONFIG_GENERIC_NO_BOOL( "qt-updates-days", Integer, NULL, CONFIG_GENERIC_NO_BOOL( "qt-updates-days", Integer, NULL,
......
...@@ -537,6 +537,8 @@ int MainInterface::privacyDialog( QList<ConfigControl *> controls ) ...@@ -537,6 +537,8 @@ int MainInterface::privacyDialog( QList<ConfigControl *> controls )
CONFIG_GENERIC_NOBOOL( "qt-updates-notif", Bool ); line++; CONFIG_GENERIC_NOBOOL( "qt-updates-notif", Bool ); line++;
CONFIG_GENERIC_NOBOOL( "qt-updates-days", Integer ); line++; CONFIG_GENERIC_NOBOOL( "qt-updates-days", Integer ); line++;
#endif #endif
CONFIG_GENERIC( "security-policy", IntegerList ); line++;
QPushButton *ok = new QPushButton( qtr( "Ok" ) ); QPushButton *ok = new QPushButton( qtr( "Ok" ) );
gLayout->addWidget( ok, 2, 2 ); gLayout->addWidget( ok, 2, 2 );
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>483</width> <width>483</width>
<height>583</height> <height>617</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy" > <property name="sizePolicy" >
...@@ -239,6 +239,16 @@ ...@@ -239,6 +239,16 @@
</property> </property>
</widget> </widget>
</item> </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> </layout>
</widget> </widget>
</item> </item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment