Commit 2779ac98 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: Simple preference: update layout for updatesDays

parent 1050c6b5
...@@ -538,12 +538,12 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -538,12 +538,12 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
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,
updatesDays ); updatesDays );
ui.updatenotifier_zone->setEnabled( ui.updatesBox->isChecked() ); ui.updatesDays->setEnabled( ui.updatesBox->isChecked() );
CONNECT( ui.updatesBox, toggled( bool ), CONNECT( ui.updatesBox, toggled( bool ),
ui.updatenotifier_zone, setEnabled( bool ) ); ui.updatesDays, setEnabled( bool ) );
#else #else
ui.updatesBox->hide(); ui.updatesBox->hide();
ui.updatenotifier_zone->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__)
......
/***************************************************************************** /*****************************************************************************
* ToolbarEdit.cpp : ToolbarEdit and About dialogs * ToolbarEdit.cpp : ToolbarEdit and About dialogs
**************************************************************************** ****************************************************************************
* Copyright (C) 2008 the VideoLAN team * Copyright (C) 2008-2009 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Jean-Baptiste Kempf <jb (at) videolan.org> * Authors: Jean-Baptiste Kempf <jb (at) videolan.org>
......
...@@ -73,24 +73,23 @@ ...@@ -73,24 +73,23 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1">
<widget class="QLabel" name="label">
<property name="text">
<string>Every</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="1" column="2"> <item row="1" column="2">
<widget class="QSpinBox" name="updatesDays"> <widget class="QSpinBox" name="updatesDays">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="alignment"> <property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
<property name="suffix"> <property name="suffix">
<string> days</string> <string> days</string>
</property> </property>
<property name="prefix">
<string>Every </string>
</property>
</widget> </widget>
</item> </item>
<item row="1" column="3"> <item row="1" column="3">
...@@ -98,9 +97,12 @@ ...@@ -98,9 +97,12 @@
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeType">
<enum>QSizePolicy::Preferred</enum>
</property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>320</width> <width>200</width>
<height>27</height> <height>27</height>
</size> </size>
</property> </property>
......
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