[LyX/master] Adjust adv. find & replace pane spacing

Juergen Spitzmueller spitz at lyx.org
Sun Feb 28 12:12:25 UTC 2021


commit 2a8cac75f4ae48815e28ee9ba51ac00a6e682cd5
Author: Daniel Ramoeller <d.lyx at web.de>
Date:   Sun Feb 21 08:02:21 2021 +0100

    Adjust adv. find & replace pane spacing
    
    Partial fix of bug #12152.
---
 src/frontends/qt/ui/FindAndReplaceUi.ui |  147 +++++++++++++++++++++++--------
 1 files changed, 109 insertions(+), 38 deletions(-)

diff --git a/src/frontends/qt/ui/FindAndReplaceUi.ui b/src/frontends/qt/ui/FindAndReplaceUi.ui
index 263d656..58a16eb 100644
--- a/src/frontends/qt/ui/FindAndReplaceUi.ui
+++ b/src/frontends/qt/ui/FindAndReplaceUi.ui
@@ -21,17 +21,45 @@
     <string>Sear&ch</string>
    </attribute>
    <layout class="QVBoxLayout" name="dynamicLayoutBasic_" stretch="1,1,0">
+    <property name="spacing">
+     <number>0</number>
+    </property>
+    <property name="leftMargin">
+     <number>0</number>
+    </property>
+    <property name="topMargin">
+     <number>0</number>
+    </property>
+    <property name="rightMargin">
+     <number>0</number>
+    </property>
+    <property name="bottomMargin">
+     <number>0</number>
+    </property>
     <item>
      <layout class="QVBoxLayout" name="findLayout">
       <item>
-       <widget class="QLabel" name="findLabel">
-        <property name="text">
-         <string>Search fo&r:</string>
+       <layout class="QGridLayout" name="gridLayout">
+        <property name="leftMargin">
+         <number>6</number>
         </property>
-        <property name="buddy">
-         <cstring>find_work_area_</cstring>
+        <property name="topMargin">
+         <number>6</number>
         </property>
-       </widget>
+        <property name="rightMargin">
+         <number>6</number>
+        </property>
+        <item row="0" column="0">
+         <widget class="QLabel" name="findLabel">
+          <property name="text">
+           <string>Search fo&r:</string>
+          </property>
+          <property name="buddy">
+           <cstring>find_work_area_</cstring>
+          </property>
+         </widget>
+        </item>
+       </layout>
       </item>
       <item>
        <widget class="lyx::frontend::EmbeddedWorkArea" name="find_work_area_" native="true">
@@ -48,14 +76,27 @@
     <item>
      <layout class="QVBoxLayout" name="replaceLayout">
       <item>
-       <widget class="QLabel" name="replaceLabel">
-        <property name="text">
-         <string>Replace &with:</string>
+       <layout class="QGridLayout" name="gridLayout_3">
+        <property name="leftMargin">
+         <number>6</number>
         </property>
-        <property name="buddy">
-         <cstring>replace_work_area_</cstring>
+        <property name="topMargin">
+         <number>6</number>
         </property>
-       </widget>
+        <property name="rightMargin">
+         <number>6</number>
+        </property>
+        <item row="0" column="0">
+         <widget class="QLabel" name="replaceLabel">
+          <property name="text">
+           <string>Replace &with:</string>
+          </property>
+          <property name="buddy">
+           <cstring>replace_work_area_</cstring>
+          </property>
+         </widget>
+        </item>
+       </layout>
       </item>
       <item>
        <widget class="lyx::frontend::EmbeddedWorkArea" name="replace_work_area_" native="true">
@@ -72,35 +113,24 @@
     <item>
      <layout class="QVBoxLayout" name="verticalLayout_4">
       <item>
-       <spacer name="verticalSpacer_4">
-        <property name="orientation">
-         <enum>Qt::Vertical</enum>
-        </property>
-        <property name="sizeHint" stdset="0">
-         <size>
-          <width>13</width>
-          <height>13</height>
-         </size>
-        </property>
-       </spacer>
-      </item>
-      <item>
-       <layout class="QHBoxLayout" name="horizontalLayout" stretch="1,0,0">
+       <layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0,0">
         <item>
-         <spacer name="horizontalSpacer">
-          <property name="orientation">
-           <enum>Qt::Horizontal</enum>
+         <layout class="QVBoxLayout" name="cbVerticalLayout">
+          <property name="spacing">
+           <number>6</number>
           </property>
-          <property name="sizeHint" stdset="0">
-           <size>
-            <width>13</width>
-            <height>13</height>
-           </size>
+          <property name="leftMargin">
+           <number>6</number>
+          </property>
+          <property name="topMargin">
+           <number>6</number>
+          </property>
+          <property name="rightMargin">
+           <number>6</number>
+          </property>
+          <property name="bottomMargin">
+           <number>6</number>
           </property>
-         </spacer>
-        </item>
-        <item>
-         <layout class="QVBoxLayout" name="cbVerticalLayout">
           <item>
            <widget class="QCheckBox" name="searchbackCB">
             <property name="toolTip">
@@ -137,7 +167,35 @@
          </layout>
         </item>
         <item>
+         <spacer name="horizontalSpacer">
+          <property name="orientation">
+           <enum>Qt::Horizontal</enum>
+          </property>
+          <property name="sizeHint" stdset="0">
+           <size>
+            <width>0</width>
+            <height>0</height>
+           </size>
+          </property>
+         </spacer>
+        </item>
+        <item>
          <layout class="QVBoxLayout" name="pbVerticalLayout">
+          <property name="spacing">
+           <number>6</number>
+          </property>
+          <property name="leftMargin">
+           <number>6</number>
+          </property>
+          <property name="topMargin">
+           <number>6</number>
+          </property>
+          <property name="rightMargin">
+           <number>6</number>
+          </property>
+          <property name="bottomMargin">
+           <number>6</number>
+          </property>
           <item>
            <widget class="QPushButton" name="findNextPB">
             <property name="enabled">
@@ -184,6 +242,19 @@
         </item>
        </layout>
       </item>
+      <item>
+       <spacer name="verticalSpacer_4">
+        <property name="orientation">
+         <enum>Qt::Vertical</enum>
+        </property>
+        <property name="sizeHint" stdset="0">
+         <size>
+          <width>0</width>
+          <height>0</height>
+         </size>
+        </property>
+       </spacer>
+      </item>
      </layout>
     </item>
    </layout>


More information about the lyx-cvs mailing list