[Kmymoney-devel] [kmymoney4] [Bug 340656] The csv importer dialog display is broken on high DPI screens

Wood w00dp at mail.com
Sat Nov 8 16:59:04 UTC 2014


https://bugs.kde.org/show_bug.cgi?id=340656

--- Comment #6 from Wood <w00dp at mail.com> ---
The screen is a 15'' laptop screen and the native resolution is 3200x1800.

You're right the rest of the wizard dialogs are broken too. I know this is not
the best place to post patches but I don't actually quite know how to
contribute patches.

This patch works even better, tested it from 3200x1800 down to 1280x900
It is only for the csvdialog.ui and the investment wizard, didn't have time to
look at the banking yet.

diff --git a/kmymoney/plugins/csvimport/csvdialog.ui
b/kmymoney/plugins/csvimport/csvdialog.ui                                       
index 166b04a..289d2b9 100644                                                   
--- a/kmymoney/plugins/csvimport/csvdialog.ui                                   
+++ b/kmymoney/plugins/csvimport/csvdialog.ui                                   
@@ -10,11 +10,11 @@                                                             
     <height>640</height>                                                       
    </rect>                                                                     
   </property>                                                                  
-  <property name="minimumSize">                                                
-   <size>                                                                      
-    <width>790</width>                                                         
-    <height>420</height>                                                       
-   </size>                                                                     
+  <property name="sizePolicy">                                                 
+   <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">      
+    <horstretch>0</horstretch>                                                 
+    <verstretch>0</verstretch>                                                 
+   </sizepolicy>                                                               
   </property>                                                                  
   <property name="windowTitle">                                                
    <string>CSV Import Wizard</string>                                          
@@ -23,23 +23,11 @@                                                             
    <item>                                                                      
     <widget class="QFrame" name="frame_main">                                  
      <property name="sizePolicy">                                              
-      <sizepolicy hsizetype="Preferred" vsizetype="Expanding">                 
+      <sizepolicy hsizetype="Expanding" vsizetype="Expanding">                 
        <horstretch>0</horstretch>                                              
        <verstretch>0</verstretch>                                              
       </sizepolicy>                                                            
      </property>
-     <property name="minimumSize">
-      <size>
-       <width>0</width>
-       <height>100</height>
-      </size>
-     </property>
-     <property name="maximumSize">
-      <size>
-       <width>1900</width>
-       <height>16777215</height>
-      </size>
-     </property>
      <property name="frameShape">
       <enum>QFrame::StyledPanel</enum>
      </property>
@@ -127,178 +115,155 @@
     </widget>
    </item>
    <item>
-    <layout class="QHBoxLayout" name="horizontalLayout_low" stretch="1,800,1">
-     <item>
-      <spacer name="horizontalSpacer">
-       <property name="orientation">
-        <enum>Qt::Horizontal</enum>
-       </property>
-       <property name="sizeHint" stdset="0">
-        <size>
-         <width>31</width>
-         <height>58</height>
-        </size>
-       </property>
-      </spacer>
-     </item>
-     <item>
-      <widget class="QFrame" name="frame_low">
-       <property name="minimumSize">
-        <size>
-         <width>0</width>
-         <height>260</height>
-        </size>
-       </property>
-       <property name="maximumSize">
-        <size>
-         <width>800</width>
-         <height>265</height>
-        </size>
-       </property>
-       <property name="frameShape">
-        <enum>QFrame::StyledPanel</enum>
-       </property>
-       <property name="frameShadow">
-        <enum>QFrame::Raised</enum>
-       </property>
-       <layout class="QHBoxLayout" name="horizontalLayout" stretch="0">
-        <property name="spacing">
-         <number>0</number>
-        </property>
-        <property name="leftMargin">
-         <number>4</number>
-        </property>
-        <property name="topMargin">
-         <number>4</number>
+    <widget class="QFrame" name="frame_low">
+     <property name="sizePolicy">
+      <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="frameShape">
+      <enum>QFrame::StyledPanel</enum>
+     </property>
+     <property name="frameShadow">
+      <enum>QFrame::Raised</enum>
+     </property>
+     <layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0">
+      <property name="spacing">
+       <number>0</number>
+      </property>
+      <property name="leftMargin">
+       <number>4</number>
+      </property>
+      <property name="topMargin">
+       <number>4</number>
+      </property>
+      <property name="rightMargin">
+       <number>4</number>
+      </property>
+      <property name="bottomMargin">
+       <number>2</number>
+      </property>
+      <item>
+       <widget class="QFrame" name="frame_stage">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="MinimumExpanding"
vsizetype="MinimumExpanding">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
         </property>
-        <property name="rightMargin">
-         <number>4</number>
+        <property name="frameShape">
+         <enum>QFrame::NoFrame</enum>
         </property>
-        <property name="bottomMargin">
-         <number>2</number>
+        <property name="frameShadow">
+         <enum>QFrame::Plain</enum>
         </property>
-        <item>
-         <widget class="QFrame" name="frame_stage">
-          <property name="maximumSize">
-           <size>
-            <width>110</width>
-            <height>16777215</height>
-           </size>
-          </property>
-          <property name="frameShape">
-           <enum>QFrame::NoFrame</enum>
-          </property>
-          <property name="frameShadow">
-           <enum>QFrame::Plain</enum>
-          </property>
-          <layout class="QVBoxLayout" name="verticalLayout_2"
stretch="10,200,50">
-           <property name="rightMargin">
-            <number>2</number>
+        <layout class="QVBoxLayout" name="verticalLayout_2"
stretch="10,200,50">
+         <property name="rightMargin">
+          <number>2</number>
+         </property>
+         <item>
+          <spacer name="verticalSpacer">
+           <property name="orientation">
+            <enum>Qt::Vertical</enum>
+           </property>
+           <property name="sizeType">
+            <enum>QSizePolicy::MinimumExpanding</enum>
+           </property>
+           <property name="sizeHint" stdset="0">
+            <size>
+             <width>20</width>
+             <height>24</height>
+            </size>
+           </property>
+          </spacer>
+         </item>
+         <item>
+          <layout class="QVBoxLayout" name="verticalLayout_stage">
+           <property name="sizeConstraint">
+            <enum>QLayout::SetDefaultConstraint</enum>
            </property>
            <item>
-            <spacer name="verticalSpacer">
-             <property name="orientation">
-              <enum>Qt::Vertical</enum>
+            <widget class="QLabel" name="label_intro">
+             <property name="text">
+              <string comment="Noun, the introduction." extracomment="Noun,
the introduction.">1. Start</string>
              </property>
-             <property name="sizeHint" stdset="0">
-              <size>
-               <width>20</width>
-               <height>6</height>
-              </size>
+            </widget>
+           </item>
+           <item>
+            <widget class="QLabel" name="label_separator">
+             <property name="text">
+              <string>2. Separators</string>
              </property>
-            </spacer>
+            </widget>
            </item>
            <item>
-            <layout class="QVBoxLayout" name="verticalLayout_stage">
-             <item>
-              <widget class="QLabel" name="label_intro">
-               <property name="minimumSize">
-                <size>
-                 <width>90</width>
-                 <height>0</height>
-                </size>
-               </property>
-               <property name="text">
-                <string comment="Noun, the introduction." extracomment="Noun,
the introduction.">1. Start</string>
-               </property>
-              </widget>
-             </item>
-             <item>
-              <widget class="QLabel" name="label_separator">
-               <property name="minimumSize">
-                <size>
-                 <width>90</width>
-                 <height>0</height>
-                </size>
-               </property>
-               <property name="text">
-                <string>2. Separators</string>
-               </property>
-              </widget>
-             </item>
-             <item>
-              <widget class="QLabel" name="label_banking">
-               <property name="text">
-                <string>3. Banking</string>
-               </property>
-              </widget>
-             </item>
-             <item>
-              <widget class="QLabel" name="label_investing">
-               <property name="text">
-                <string>4. Investing</string>
-               </property>
-              </widget>
-             </item>
-             <item>
-              <widget class="QLabel" name="label_lines">
-               <property name="text">
-                <string>5. Lines</string>
-               </property>
-              </widget>
-             </item>
-             <item>
-              <widget class="QLabel" name="label_finish">
-               <property name="text">
-                <string comment="Noun, the end." extracomment="Noun, the
end.">6. Finish</string>
-               </property>
-              </widget>
-             </item>
-            </layout>
+            <widget class="QLabel" name="label_banking">
+             <property name="text">
+              <string>3. Banking</string>
+             </property>
+            </widget>
            </item>
            <item>
-            <spacer name="verticalSpacer_2">
-             <property name="orientation">
-              <enum>Qt::Vertical</enum>
+            <widget class="QLabel" name="label_investing">
+             <property name="text">
+              <string>4. Investing</string>
              </property>
-             <property name="sizeHint" stdset="0">
-              <size>
-               <width>20</width>
-               <height>42</height>
-              </size>
+            </widget>
+           </item>
+           <item>
+            <widget class="QLabel" name="label_lines">
+             <property name="text">
+              <string>5. Lines</string>
              </property>
-            </spacer>
+            </widget>
+           </item>
+           <item>
+            <widget class="QLabel" name="label_finish">
+             <property name="text">
+              <string comment="Noun, the end." extracomment="Noun, the
end.">6. Finish</string>
+             </property>
+            </widget>
            </item>
           </layout>
-         </widget>
-        </item>
-       </layout>
-      </widget>
-     </item>
-     <item>
-      <spacer name="horizontalSpacer_2">
-       <property name="orientation">
-        <enum>Qt::Horizontal</enum>
-       </property>
-       <property name="sizeHint" stdset="0">
-        <size>
-         <width>65</width>
-         <height>68</height>
-        </size>
-       </property>
-      </spacer>
-     </item>
-    </layout>
+         </item>
+         <item>
+          <spacer name="verticalSpacer_2">
+           <property name="orientation">
+            <enum>Qt::Vertical</enum>
+           </property>
+           <property name="sizeType">
+            <enum>QSizePolicy::Expanding</enum>
+           </property>
+           <property name="sizeHint" stdset="0">
+            <size>
+             <width>20</width>
+             <height>24</height>
+            </size>
+           </property>
+          </spacer>
+         </item>
+        </layout>
+       </widget>
+      </item>
+      <item>
+       <spacer name="horizontalSpacer_3">
+        <property name="orientation">
+         <enum>Qt::Horizontal</enum>
+        </property>
+        <property name="sizeType">
+         <enum>QSizePolicy::Expanding</enum>
+        </property>
+        <property name="sizeHint" stdset="0">
+         <size>
+          <width>40</width>
+          <height>20</height>
+         </size>
+        </property>
+       </spacer>
+      </item>
+     </layout>
+    </widget>
    </item>
   </layout>
  </widget>




diff --git a/kmymoney/plugins/csvimport/investmentwizardpage.ui
b/kmymoney/plugins/csvimport/investmentwizardpage.ui
index d3f2857..c86c424 100644
--- a/kmymoney/plugins/csvimport/investmentwizardpage.ui
+++ b/kmymoney/plugins/csvimport/investmentwizardpage.ui
@@ -6,15 +6,15 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>662</width>
-    <height>266</height>
+    <width>1068</width>
+    <height>300</height>
    </rect>
   </property>
-  <property name="minimumSize">
-   <size>
-    <width>0</width>
-    <height>190</height>
-   </size>
+  <property name="sizePolicy">
+   <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
+    <horstretch>0</horstretch>
+    <verstretch>0</verstretch>
+   </sizepolicy>
   </property>
   <property name="maximumSize">
    <size>
@@ -26,37 +26,43 @@
    <string>Investment Wizard Page</string>
   </property>
   <layout class="QGridLayout" name="gridLayout_2">
+   <property name="sizeConstraint">
+    <enum>QLayout::SetNoConstraint</enum>
+   </property>
    <item row="0" column="0">
-    <layout class="QHBoxLayout" name="horizontalLayout" stretch="1,500,1">
+    <layout class="QHBoxLayout" name="horizontalLayout">
+     <property name="sizeConstraint">
+      <enum>QLayout::SetNoConstraint</enum>
+     </property>
      <item>
       <spacer name="horizontalSpacer">
        <property name="orientation">
         <enum>Qt::Horizontal</enum>
        </property>
+       <property name="sizeType">
+        <enum>QSizePolicy::MinimumExpanding</enum>
+       </property>
        <property name="sizeHint" stdset="0">
         <size>
-         <width>13</width>
+         <width>5</width>
          <height>243</height>
         </size>
        </property>
       </spacer>
      </item>
      <item>
-      <layout class="QVBoxLayout" name="verticalLayout" stretch="10,80">
+      <layout class="QVBoxLayout" name="verticalLayout">
+       <property name="sizeConstraint">
+        <enum>QLayout::SetNoConstraint</enum>
+       </property>
        <item>
         <widget class="QLabel" name="label">
          <property name="sizePolicy">
-          <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+          <sizepolicy hsizetype="MinimumExpanding"
vsizetype="MinimumExpanding">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
-         <property name="maximumSize">
-          <size>
-           <width>16777215</width>
-           <height>50</height>
-          </size>
-         </property>
          <property name="font">
           <font>
            <weight>75</weight>
@@ -74,9 +80,18 @@ Otherwise, select the column for the symbol, and for the
description or detail.<
         </widget>
        </item>
        <item>
-        <layout class="QGridLayout" name="gridLayout"
rowstretch="9,9,9,1,9,5,9" columnstretch="23,10,10,10,15,15,20">
+        <layout class="QGridLayout" name="gridLayout">
+         <property name="sizeConstraint">
+          <enum>QLayout::SetNoConstraint</enum>
+         </property>
          <item row="4" column="2">
           <widget class="QLabel" name="labelInv_detailCol">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
            <property name="text">
             <string>Detail</string>
            </property>
@@ -90,6 +105,12 @@ Otherwise, select the column for the symbol, and for the
description or detail.<
            <property name="enabled">
             <bool>true</bool>
            </property>
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
            <property name="text">
             <string comment="column for monetary value">Amount</string>
            </property>
@@ -100,11 +121,11 @@ Otherwise, select the column for the symbol, and for the
description or detail.<
          </item>
          <item row="1" column="3">
           <widget class="KComboBox" name="comboBoxInv_quantityCol">
-           <property name="minimumSize">
-            <size>
-             <width>50</width>
-             <height>24</height>
-            </size>
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
            </property>
            <property name="toolTip">
             <string>Select column containing quantity field.</string>
@@ -116,11 +137,11 @@ Otherwise, select the column for the symbol, and for the
description or detail.<
          </item>
          <item row="2" column="3">
           <widget class="KComboBox" name="comboBoxInv_amountCol">
-           <property name="minimumSize">
-            <size>
-             <width>50</width>
-             <height>24</height>
-            </size>
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
            </property>
            <property name="toolTip">
             <string>Select column containing amount field.</string>
@@ -132,11 +153,11 @@ Otherwise, select the column for the symbol, and for the
description or detail.<
          </item>
          <item row="1" column="5">
           <widget class="KComboBox" name="comboBoxInv_feeCol">
-           <property name="minimumSize">
-            <size>
-             <width>50</width>
-             <height>24</height>
-            </size>
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
            </property>
            <property name="toolTip">
             <string><p align="center">If necessary, select
column containing fee.  
@@ -150,11 +171,11 @@ incorporated into the
price.</span></p></string>
          </item>
          <item row="0" column="1">
           <widget class="KComboBox" name="comboBoxInv_dateCol">
-           <property name="minimumSize">
-            <size>
-             <width>50</width>
-             <height>24</height>
-            </size>
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
            </property>
            <property name="toolTip">
             <string>Select column containing date field.</string>
@@ -169,6 +190,12 @@ incorporated into the
price.</span></p></string>
            <property name="enabled">
             <bool>true</bool>
            </property>
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
            <property name="accessibleName">
             <string comment="column containing quantity field"/>
            </property>
@@ -182,6 +209,12 @@ incorporated into the
price.</span></p></string>
          </item>
          <item row="1" column="4">
           <widget class="QLabel" name="labelInv_feeCol">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
            <property name="accessibleName">
             <string comment="column containing fee field"/>
            </property>
@@ -198,11 +231,11 @@ incorporated into the
price.</span></p></string>
          </item>
          <item row="2" column="1">
           <widget class="KComboBox" name="comboBoxInv_memoCol">
-           <property name="minimumSize">
-            <size>
-             <width>50</width>
-             <height>24</height>
-            </size>
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
            </property>
            <property name="toolTip">
             <string><p align="center">Select column containing
memo field. More than one column may be entered successively. <br />May
also be selected to contain a copy of the type or detail column.</
@@ -214,11 +247,11 @@ incorporated into the
price.</span></p></string>
          </item>
          <item row="0" column="5">
           <widget class="KComboBox" name="comboBoxInv_priceFraction">
-           <property name="minimumSize">
-            <size>
-             <width>50</width>
-             <height>24</height>
-            </size>
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
            </property>
            <property name="toolTip">
             <string><p align="center">If necessary, select a
fraction/multiplier for compatibility between imported and stored prices. For
instance, if the import price is in cents but the file is priced in dol
@@ -255,11 +288,11 @@ incorporated into the
price.</span></p></string>
          </item>
          <item row="0" column="3">
           <widget class="KComboBox" name="comboBoxInv_priceCol">
-           <property name="minimumSize">
-            <size>
-             <width>50</width>
-             <height>24</height>
-            </size>
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
            </property>
            <property name="toolTip">
             <string>Select column containing price field.</string>
@@ -271,11 +304,11 @@ incorporated into the
price.</span></p></string>
          </item>
          <item row="5" column="0" colspan="7">
           <widget class="Line" name="line_2">
-           <property name="minimumSize">
-            <size>
-             <width>620</width>
-             <height>2</height>
-            </size>
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
            </property>
            <property name="orientation">
             <enum>Qt::Horizontal</enum>
@@ -284,11 +317,11 @@ incorporated into the
price.</span></p></string>
          </item>
          <item row="6" column="6">
           <widget class="KPushButton" name="buttonInv_hideSecurity">
-           <property name="minimumSize">
-            <size>
-             <width>100</width>
-             <height>24</height>
-            </size>
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
            </property>
            <property name="maximumSize">
             <size>
@@ -309,6 +342,12 @@ incorporated into the
price.</span></p></string>
          </item>
          <item row="3" column="0" colspan="6">
           <widget class="Line" name="line">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
            <property name="orientation">
             <enum>Qt::Horizontal</enum>
            </property>
@@ -316,6 +355,12 @@ incorporated into the
price.</span></p></string>
          </item>
          <item row="1" column="0">
           <widget class="QLabel" name="labelInv_type">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
            <property name="accessibleName">
             <string comment="column containing investment type/action field"/>
            </property>
@@ -329,11 +374,11 @@ incorporated into the
price.</span></p></string>
          </item>
          <item row="4" column="5">
           <widget class="KLineEdit" name="lineEdit_filter">
-           <property name="minimumSize">
-            <size>
-             <width>50</width>
-             <height>24</height>
-            </size>
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
            </property>
            <property name="toolTip">
             <string><p align="center">If the Detail column has
an activity type prefixed by a standard text, enter the text here. For
instance, if a field contains, say,<br/> 'type: dividend', enter 'type
@@ -345,11 +390,11 @@ incorporated into the
price.</span></p></string>
          </item>
          <item row="2" column="6">
           <widget class="KPushButton" name="button_clear">
-           <property name="minimumSize">
-            <size>
-             <width>100</width>
-             <height>24</height>
-            </size>
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
            </property>
            <property name="toolTip">
             <string>Clear selected column entries.</string>
@@ -364,17 +409,11 @@ incorporated into the
price.</span></p></string>
            <property name="enabled">
             <bool>false</bool>
            </property>
-           <property name="minimumSize">
-            <size>
-             <width>0</width>
-             <height>24</height>
-            </size>
-           </property>
-           <property name="maximumSize">
-            <size>
-             <width>375</width>
-             <height>16777215</height>
-            </size>
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
            </property>
            <property name="font">
             <font>
@@ -401,11 +440,11 @@ The names are retained and may be selected from the list
here.</p></string
          </item>
          <item row="4" column="1">
           <widget class="KComboBox" name="comboBoxInv_symbolCol">
-           <property name="minimumSize">
-            <size>
-             <width>50</width>
-             <height>24</height>
-            </size>
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
            </property>
            <property name="toolTip">
             <string><p align="center" >If more than one stock
is present in the file, and if the stock symbols<br/> are shown in one of
the columns, select it here. </p></string>
@@ -414,17 +453,11 @@ The names are retained and may be selected from the list
here.</p></string
          </item>
          <item row="0" column="4">
           <widget class="QLabel" name="labelInv_priceFraction">
-           <property name="minimumSize">
-            <size>
-             <width>85</width>
-             <height>0</height>
-            </size>
-           </property>
-           <property name="maximumSize">
-            <size>
-             <width>100</width>
-             <height>16777215</height>
-            </size>
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
            </property>
            <property name="accessibleName">
             <string comment="noun, conversion factor to align pricing in the
imported file with KMM's internal prices."/>
@@ -442,11 +475,11 @@ The names are retained and may be selected from the list
here.</p></string
            <property name="enabled">
             <bool>true</bool>
            </property>
-           <property name="minimumSize">
-            <size>
-             <width>50</width>
-             <height>0</height>
-            </size>
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
            </property>
            <property name="maximumSize">
             <size>
@@ -467,6 +500,12 @@ The names are retained and may be selected from the list
here.</p></string
          </item>
          <item row="4" column="0">
           <widget class="QLabel" name="labelInv_symbolCol">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
            <property name="text">
             <string>Symbol</string>
            </property>
@@ -477,11 +516,11 @@ The names are retained and may be selected from the list
here.</p></string
          </item>
          <item row="4" column="3">
           <widget class="KComboBox" name="comboBoxInv_detailCol">
-           <property name="minimumSize">
-            <size>
-             <width>50</width>
-             <height>24</height>
-            </size>
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
            </property>
            <property name="toolTip">
             <string><p align="center" >If a descriptive column
contains an activity type, select it here.<br /> See also Filter text
field.</p></string>
@@ -490,6 +529,12 @@ The names are retained and may be selected from the list
here.</p></string
          </item>
          <item row="0" column="0">
           <widget class="QLabel" name="labelInv_date">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
            <property name="toolTip">
             <string comment="verb, Select column containing date field">Select
column containing date field</string>
            </property>
@@ -506,11 +551,11 @@ The names are retained and may be selected from the list
here.</p></string
          </item>
          <item row="4" column="4">
           <widget class="QLabel" name="labelInv_FilterText">
-           <property name="minimumSize">
-            <size>
-             <width>80</width>
-             <height>0</height>
-            </size>
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
            </property>
            <property name="text">
             <string>Filter text</string>
@@ -522,17 +567,11 @@ The names are retained and may be selected from the list
here.</p></string
          </item>
          <item row="6" column="0">
           <widget class="QLabel" name="labelInv_security">
-           <property name="minimumSize">
-            <size>
-             <width>100</width>
-             <height>20</height>
-            </size>
-           </property>
-           <property name="maximumSize">
-            <size>
-             <width>115</width>
-             <height>20</height>
-            </size>
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
            </property>
            <property name="accessibleName">
             <string comment="name of security"/>
@@ -540,13 +579,25 @@ The names are retained and may be selected from the list
here.</p></string
            <property name="text">
             <string>or Security Name</string>
            </property>
+           <property name="scaledContents">
+            <bool>false</bool>
+           </property>
            <property name="alignment">
             <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
            </property>
+           <property name="wordWrap">
+            <bool>true</bool>
+           </property>
           </widget>
          </item>
          <item row="2" column="0">
           <widget class="QLabel" name="labelInv_memo">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
            <property name="accessibleName">
             <string comment="column containing memo field"/>
            </property>
@@ -560,11 +611,11 @@ The names are retained and may be selected from the list
here.</p></string
          </item>
          <item row="1" column="1">
           <widget class="KComboBox" name="comboBoxInv_typeCol">
-           <property name="minimumSize">
-            <size>
-             <width>50</width>
-             <height>24</height>
-            </size>
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
            </property>
            <property name="toolTip">
             <string>Select column containing investment type field.</string>
@@ -579,6 +630,12 @@ The names are retained and may be selected from the list
here.</p></string
            <property name="enabled">
             <bool>false</bool>
            </property>
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
            <property name="minimumSize">
             <size>
              <width>0</width>
@@ -608,9 +665,12 @@ The names are retained and may be selected from the list
here.</p></string
        <property name="orientation">
         <enum>Qt::Horizontal</enum>
        </property>
+       <property name="sizeType">
+        <enum>QSizePolicy::MinimumExpanding</enum>
+       </property>
        <property name="sizeHint" stdset="0">
         <size>
-         <width>13</width>
+         <width>5</width>
          <height>243</height>
         </size>
        </property>

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list