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 );
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" ) );
</property>
</widget>
</item>
- <item row="0" column="1" >
+ <item row="0" column="1" colspan="2" >
<widget class="QComboBox" name="artFetcher" />
</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" >
- <widget class="QCheckBox" name="qtUpdates" >
+ <widget class="QCheckBox" name="updatesBox" >
<property name="text" >
<string>_("Activate update notifier")</string>
</property>
</widget>
</item>
- <item row="1" column="0" colspan="2" >
- <widget class="QCheckBox" name="metaFetcher" >
- <property name="text" >
- <string>_("Fetch the metadata from the Internet")</string>
+ <item row="2" column="2" >
+ <widget class="QSpinBox" name="updatesDays" >
+ <property name="alignment" >
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ <property name="suffix" >
+ <string> days</string>
</property>
</widget>
</item>