[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/base/print-manager/printer-manager-kcm
From:       Harald Sitter <sitter.harald () gmail ! com>
Date:       2010-11-13 11:24:53
Message-ID: 20101113112453.20783AC89E () svn ! kde ! org
[Download RAW message or body]

SVN commit 1196402 by sitter:

When using a form layout, the layout needs to allow expanding for expanding widgets \
or text will be cut off. Word-wrap apparently does not have any effect because the \
layout disallows size changes. This is very horrible when the text size is changing \
depending on what a library returns. As is the case with the printer description's \
                status field for example.
solution: make expanding labels expanding ... I am afraid that this was still not \
enough for l10n though. Also, it seems this particular ui has some size problems \
(fixed vertical size and such will probably not go well with enormous user font \
size).


 M  +13 -4     PrinterDescription.ui  


--- trunk/playground/base/print-manager/printer-manager-kcm/PrinterDescription.ui \
#1196401:1196402 @@ -13,9 +13,6 @@
   <layout class="QGridLayout" name="gridLayout">
    <item row="0" column="0">
     <layout class="QFormLayout" name="formLayout">
-     <property name="fieldGrowthPolicy">
-      <enum>QFormLayout::FieldsStayAtSizeHint</enum>
-     </property>
      <property name="rowWrapPolicy">
       <enum>QFormLayout::DontWrapRows</enum>
      </property>
@@ -78,6 +75,12 @@
      </item>
      <item row="1" column="1">
       <widget class="QLabel" name="locationMsgL">
+       <property name="sizePolicy">
+        <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
        <property name="text">
         <string notr="true">textLocation</string>
        </property>
@@ -96,7 +99,7 @@
      <item row="2" column="1">
       <widget class="QLabel" name="kindMsgL">
        <property name="sizePolicy">
-        <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+        <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
@@ -118,6 +121,12 @@
      </item>
      <item row="3" column="1">
       <widget class="QLabel" name="statusMsgL">
+       <property name="sizePolicy">
+        <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
        <property name="text">
         <string notr="true">status text</string>
        </property>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic