From: Jean-Baptiste Kempf Date: Thu, 31 Jan 2008 00:46:50 +0000 (+0000) Subject: Qt4 - Update check every x days. Put it in the preferences, and in the privacy Dialog... X-Git-Tag: 0.9.0-test0~3084 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2f20315adca6dc9546d8edd7e5059971b1d98bbb;p=vlc Qt4 - Update check every x days. Put it in the preferences, and in the privacy Dialog (may be useless on the privacy dialog ). --- diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp index 03fe699217..ad8b5007a9 100644 --- a/modules/gui/qt4/components/simple_preferences.cpp +++ b/modules/gui/qt4/components/simple_preferences.cpp @@ -425,7 +425,14 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, CONFIG_GENERIC( "album-art", IntegerList, ui.artFetchLabel, artFetcher ); CONFIG_GENERIC( "fetch-meta", Bool, NULL, metaFetcher ); #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 CONFIG_GENERIC( "qt-always-video", Bool, NULL, qtAlwaysVideo ); CONFIG_GENERIC( "embeded-video", Bool, NULL, embedVideo ); diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp index 672da8ec21..e3bcefa89a 100644 --- a/modules/gui/qt4/main_interface.cpp +++ b/modules/gui/qt4/main_interface.cpp @@ -519,7 +519,8 @@ int MainInterface::privacyDialog( QList controls ) CONFIG_GENERIC( "album-art", IntegerList ); line++; CONFIG_GENERIC_NOBOOL( "fetch-meta", Bool ); line++; #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 QPushButton *ok = new QPushButton( qtr( "Ok" ) ); diff --git a/modules/gui/qt4/ui/sprefs_interface.ui b/modules/gui/qt4/ui/sprefs_interface.ui index f9c5cdee9f..bf5864d2b3 100644 --- a/modules/gui/qt4/ui/sprefs_interface.ui +++ b/modules/gui/qt4/ui/sprefs_interface.ui @@ -212,20 +212,30 @@ - + + + + + _("Fetch the metadata from the Internet") + + + - + _("Activate update notifier") - - - - _("Fetch the metadata from the Internet") + + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + days