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

Wood w00dp at mail.com
Fri Nov 7 04:17:16 UTC 2014


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

--- Comment #4 from Wood <w00dp at mail.com> ---
This would fix the problem.
diff --git a/kmymoney/plugins/csvimport/csvdialog.ui
b/kmymoney/plugins/csvimport/csvdialog.ui
index 166b04a..6f3d699 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,7 +115,10 @@
     </widget>
    </item>
    <item>
-    <layout class="QHBoxLayout" name="horizontalLayout_low" stretch="1,800,1">
+    <layout class="QHBoxLayout" name="horizontalLayout_low">
+     <property name="sizeConstraint">
+      <enum>QLayout::SetNoConstraint</enum>
+     </property>
      <item>
       <spacer name="horizontalSpacer">
        <property name="orientation">
@@ -143,17 +134,11 @@
      </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 name="sizePolicy">
+        <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
        </property>
        <property name="frameShape">
         <enum>QFrame::StyledPanel</enum>
@@ -179,9 +164,15 @@
         </property>
         <item>
          <widget class="QFrame" name="frame_stage">
+          <property name="sizePolicy">
+           <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+            <horstretch>0</horstretch>
+            <verstretch>0</verstretch>
+           </sizepolicy>
+          </property>
           <property name="maximumSize">
            <size>
-            <width>110</width>
+            <width>170</width>
             <height>16777215</height>
            </size>
           </property>
@@ -210,14 +201,11 @@
            </item>
            <item>
             <layout class="QVBoxLayout" name="verticalLayout_stage">
+             <property name="sizeConstraint">
+              <enum>QLayout::SetDefaultConstraint</enum>
+             </property>
              <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>
@@ -225,12 +213,6 @@
              </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>

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


More information about the KMyMoney-devel mailing list