]> git.sesse.net Git - vlc/commitdiff
Qt: Simple preference: update layout for updatesDays
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 18 Jul 2009 14:01:14 +0000 (16:01 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 18 Jul 2009 14:03:11 +0000 (16:03 +0200)
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/dialogs/toolbar.cpp
modules/gui/qt4/ui/sprefs_interface.ui

index 729c6b0b3bb2899d0ac628416ac18d03b3f64608..7b51f97509d01288b36399550e43f262b8a40609 100644 (file)
@@ -520,7 +520,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
                     addWidget( preview, 1, 0, 1, 2 );
             CONNECT( ui.displayModeBox, currentIndexChanged( int ),
                      preview, setPreview( int ) );
-            
+
             CONFIG_GENERIC( "qt-display-mode", IntegerList, ui.displayLabel,
                             displayModeBox );
             CONFIG_GENERIC( "embedded-video", Bool, NULL, embedVideo );
@@ -538,12 +538,12 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
             CONFIG_GENERIC( "qt-updates-notif", Bool, NULL, updatesBox );
             CONFIG_GENERIC_NO_BOOL( "qt-updates-days", Integer, NULL,
                     updatesDays );
-            ui.updatenotifier_zone->setEnabled( ui.updatesBox->isChecked() );
+            ui.updatesDays->setEnabled( ui.updatesBox->isChecked() );
             CONNECT( ui.updatesBox, toggled( bool ),
-                     ui.updatenotifier_zone, setEnabled( bool ) );
+                     ui.updatesDays, setEnabled( bool ) );
 #else
             ui.updatesBox->hide();
-            ui.updatenotifier_zone->hide();
+            ui.updatesDays->hide();
 #endif
             /* ONE INSTANCE options */
 #if defined( WIN32 ) || defined( HAVE_DBUS ) || defined(__APPLE__)
index 780d3f181464cb55ae74482dc7c455813834f213..83d984dacec36911e1701841d998b555558563d3 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * ToolbarEdit.cpp : ToolbarEdit and About dialogs
  ****************************************************************************
- * Copyright (C) 2008 the VideoLAN team
+ * Copyright (C) 2008-2009 the VideoLAN team
  * $Id$
  *
  * Authors: Jean-Baptiste Kempf <jb (at) videolan.org>
index 9bde372db0020e77502a89bd7bbf64cc05b5e080..3f7c3cf50560caf16a24a0d075ca4a772e285523 100644 (file)
         </property>
        </widget>
       </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">
        <widget class="QSpinBox" name="updatesDays">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
         <property name="alignment">
          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
         </property>
         <property name="suffix">
          <string> days</string>
         </property>
+        <property name="prefix">
+         <string>Every </string>
+        </property>
        </widget>
       </item>
       <item row="1" column="3">
         <property name="orientation">
          <enum>Qt::Horizontal</enum>
         </property>
+        <property name="sizeType">
+         <enum>QSizePolicy::Preferred</enum>
+        </property>
         <property name="sizeHint" stdset="0">
          <size>
-          <width>320</width>
+          <width>200</width>
           <height>27</height>
          </size>
         </property>