Commit 2f20315a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Update check every x days. Put it in the preferences, and in the privacy...

Qt4 - Update check every x days. Put it in the preferences, and in the privacy Dialog (may be useless on the privacy dialog ).

parent 6c157c74
...@@ -425,7 +425,14 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -425,7 +425,14 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
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 );
#ifdef UPDATE_CHECK #ifdef UPDATE_CHECK
CONFIG_GENERIC( "qt-updates-notif", Bool, NULL, qtUpdates ); CONFIG_GENERIC( "qt-updates-notif", Bool, NULL, updatesBox );
CONFIG_GENERIC_NO_BOOL( "qt-updates-days", Integer, NULL,
updatesDays );
CONNECT( ui.updatesBox, toggled( bool ),
ui.updatesDays, setEnabled( bool ) );
#else
ui.updatesBox.hide();
ui.updatesDays.hide();
#endif #endif
CONFIG_GENERIC( "qt-always-video", Bool, NULL, qtAlwaysVideo ); CONFIG_GENERIC( "qt-always-video", Bool, NULL, qtAlwaysVideo );
CONFIG_GENERIC( "embeded-video", Bool, NULL, embedVideo ); CONFIG_GENERIC( "embeded-video", Bool, NULL, embedVideo );
......
...@@ -519,7 +519,8 @@ int MainInterface::privacyDialog( QList<ConfigControl *> controls ) ...@@ -519,7 +519,8 @@ int MainInterface::privacyDialog( QList<ConfigControl *> controls )
CONFIG_GENERIC( "album-art", IntegerList ); line++; CONFIG_GENERIC( "album-art", IntegerList ); line++;
CONFIG_GENERIC_NOBOOL( "fetch-meta", Bool ); line++; CONFIG_GENERIC_NOBOOL( "fetch-meta", Bool ); line++;
#ifdef UPDATE_CHECK #ifdef UPDATE_CHECK
CONFIG_GENERIC_NOBOOL( "qt-updates-notif", Bool ); CONFIG_GENERIC_NOBOOL( "qt-updates-notif", Bool ); line++;
CONFIG_GENERIC_NOBOOL( "qt-updates-days", Integer ); line++;
#endif #endif
QPushButton *ok = new QPushButton( qtr( "Ok" ) ); QPushButton *ok = new QPushButton( qtr( "Ok" ) );
......
...@@ -212,20 +212,30 @@ ...@@ -212,20 +212,30 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1" > <item row="0" column="1" colspan="2" >
<widget class="QComboBox" name="artFetcher" /> <widget class="QComboBox" name="artFetcher" />
</item> </item>
<item row="1" column="0" colspan="2" >
<widget class="QCheckBox" name="metaFetcher" >
<property name="text" >
<string>_("Fetch the metadata from the Internet")</string>
</property>
</widget>
</item>
<item row="2" column="0" > <item row="2" column="0" >
<widget class="QCheckBox" name="qtUpdates" > <widget class="QCheckBox" name="updatesBox" >
<property name="text" > <property name="text" >
<string>_("Activate update notifier")</string> <string>_("Activate update notifier")</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0" colspan="2" > <item row="2" column="2" >
<widget class="QCheckBox" name="metaFetcher" > <widget class="QSpinBox" name="updatesDays" >
<property name="text" > <property name="alignment" >
<string>_("Fetch the metadata from the Internet")</string> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="suffix" >
<string> days</string>
</property> </property>
</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