]> git.lyx.org Git - features.git/commitdiff
FloatPlacementUi was broken elsewhere.
authorPavel Sanda <sanda@lyx.org>
Wed, 2 Mar 2011 23:15:04 +0000 (23:15 +0000)
committerPavel Sanda <sanda@lyx.org>
Wed, 2 Mar 2011 23:15:04 +0000 (23:15 +0000)
At document prefs there was undeleted first empty line.
This was due to the spacer which has no visibility property.
However, removing spacer breaks alignment in float dialog
so we need to set up stretch of combo box to full width.

I have no better idea.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37838 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/ui/FloatPlacementUi.ui

index 36e4f957b8cfb5589e851b69a6afa280fa0b6897..0114986a9dae59c5df8260c82899962b4e893209 100644 (file)
     </widget>
    </item>
    <item row="0" column="1" colspan="2" >
-    <widget class="QComboBox" name="floatTypeCO" />
-   </item>
-   <item row="0" column="3" >
-    <spacer name="floatTypeSpacer" >
-     <property name="orientation" >
-      <enum>Qt::Horizontal</enum>
+    <widget class="QComboBox" name="floatTypeCO" >
+     <property name="sizePolicy" >
+      <sizepolicy vsizetype="Fixed" hsizetype="Preferred" >
+       <horstretch>1</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
      </property>
-     <property name="sizeHint" stdset="0" >
-      <size>
-       <width>40</width>
-       <height>20</height>
-      </size>
-     </property>
-    </spacer>
+    </widget>
    </item>
    <item row="1" column="0" colspan="4" >
     <widget class="QCheckBox" name="defaultsCB" >