Commit b3354a63 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: hide update check preference when !UPDATE_CHECK

Close #6813
(cherry picked from commit 88a69655ae94b045d84fd9d45daf155e1728a65a)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent f2a1e6ff
...@@ -612,7 +612,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -612,7 +612,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONNECT( ui.updatesBox, toggled( bool ), CONNECT( ui.updatesBox, toggled( bool ),
ui.updatesDays, setEnabled( bool ) ); ui.updatesDays, setEnabled( bool ) );
#else #else
ui.updateNotifierZone->hide(); ui.updatesBox->hide();
ui.updatesDays->hide();
#endif #endif
/* ONE INSTANCE options */ /* ONE INSTANCE options */
#if defined( WIN32 ) || defined( HAVE_DBUS ) || defined(__APPLE__) #if defined( WIN32 ) || defined( HAVE_DBUS ) || defined(__APPLE__)
......
...@@ -71,39 +71,45 @@ ...@@ -71,39 +71,45 @@
<string>Privacy / Network Interaction</string> <string>Privacy / Network Interaction</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_5"> <layout class="QGridLayout" name="gridLayout_5">
<item row="0" column="0"> <item row="2" column="1">
<widget class="QLabel" name="artFetchLabel"> <spacer name="horizontalSpacer_2">
<property name="minimumSize"> <property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Preferred</enum>
</property>
<property name="sizeHint" stdset="0">
<size> <size>
<width>220</width> <width>40</width>
<height>0</height> <height>20</height>
</size> </size>
</property> </property>
<property name="text"> </spacer>
<string>Album art download policy:</string> </item>
<item row="1" column="3">
<widget class="QSpinBox" name="updatesDays">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="buddy"> <property name="alignment">
<cstring>artFetcher</cstring> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="suffix">
<string> days</string>
</property>
<property name="prefix">
<string>Every </string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="3" colspan="2"> <item row="0" column="3" colspan="2">
<widget class="QComboBox" name="artFetcher"/> <widget class="QComboBox" name="artFetcher"/>
</item> </item>
<item row="3" column="0"> <item row="2" column="2">
<widget class="QCheckBox" name="saveRecentlyPlayed">
<property name="minimumSize">
<size>
<width>220</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Save recently played items</string>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QLabel" name="filterLabel"> <widget class="QLabel" name="filterLabel">
<property name="text"> <property name="text">
<string>Filter:</string> <string>Filter:</string>
...@@ -119,7 +125,7 @@ ...@@ -119,7 +125,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="3" colspan="2"> <item row="2" column="3" colspan="2">
<widget class="QLineEdit" name="recentlyPlayedFilters"> <widget class="QLineEdit" name="recentlyPlayedFilters">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
...@@ -132,17 +138,8 @@ ...@@ -132,17 +138,8 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0" colspan="5"> <item row="2" column="0">
<widget class="QWidget" name="updateNotifierZone" native="true"> <widget class="QCheckBox" name="saveRecentlyPlayed">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="margin">
<number>0</number>
</property>
</layout>
</widget>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="updatesBox">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>220</width> <width>220</width>
...@@ -150,44 +147,38 @@ ...@@ -150,44 +147,38 @@
</size> </size>
</property> </property>
<property name="text"> <property name="text">
<string>Activate updates notifier</string> <string>Save recently played items</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="3"> <item row="0" column="0">
<widget class="QSpinBox" name="updatesDays"> <widget class="QLabel" name="artFetchLabel">
<property name="sizePolicy"> <property name="minimumSize">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> <size>
<horstretch>0</horstretch> <width>220</width>
<verstretch>0</verstretch> <height>0</height>
</sizepolicy> </size>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
<property name="suffix"> <property name="text">
<string> days</string> <string>Album art download policy:</string>
</property> </property>
<property name="prefix"> <property name="buddy">
<string>Every </string> <cstring>artFetcher</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="1"> <item row="1" column="0">
<spacer name="horizontalSpacer_2"> <widget class="QCheckBox" name="updatesBox">
<property name="orientation"> <property name="minimumSize">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Preferred</enum>
</property>
<property name="sizeHint" stdset="0">
<size> <size>
<width>40</width> <width>220</width>
<height>20</height> <height>0</height>
</size> </size>
</property> </property>
</spacer> <property name="text">
<string>Activate updates notifier</string>
</property>
</widget>
</item> </item>
</layout> </layout>
</widget> </widget>
......
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