From b549cd910645d418b56073c13466b208a60ab347 Mon Sep 17 00:00:00 2001
From: Kai Koehne <kai.koehne@qt.io>
Date: Fri, 16 Jun 2017 17:36:44 +0200
Subject: [PATCH] TextFinder: Remove dubious spacer

Task-number: QTBUG-61419
Change-Id: I8704fd5300e165ed6e123f115b797033d39cdbe8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
---
 .../uitools/textfinder/forms/textfinder.ui    | 78 ++++++++++---------
 1 file changed, 42 insertions(+), 36 deletions(-)

diff --git a/examples/uitools/textfinder/forms/textfinder.ui b/examples/uitools/textfinder/forms/textfinder.ui
index af05192db..9ea3011e8 100644
--- a/examples/uitools/textfinder/forms/textfinder.ui
+++ b/examples/uitools/textfinder/forms/textfinder.ui
@@ -1,7 +1,8 @@
-<ui version="4.0" >
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
  <class>Form</class>
- <widget class="QWidget" name="Form" >
-  <property name="geometry" >
+ <widget class="QWidget" name="Form">
+  <property name="geometry">
    <rect>
     <x>0</x>
     <y>0</y>
@@ -9,40 +10,58 @@
     <height>158</height>
    </rect>
   </property>
-  <property name="windowTitle" >
+  <property name="windowTitle">
    <string>Find Text</string>
   </property>
-  <layout class="QVBoxLayout" >
-   <property name="margin" >
+  <layout class="QVBoxLayout">
+   <property name="spacing">
+    <number>6</number>
+   </property>
+   <property name="leftMargin">
     <number>9</number>
    </property>
-   <property name="spacing" >
-    <number>6</number>
+   <property name="topMargin">
+    <number>9</number>
+   </property>
+   <property name="rightMargin">
+    <number>9</number>
+   </property>
+   <property name="bottomMargin">
+    <number>9</number>
    </property>
    <item>
-    <layout class="QGridLayout" >
-     <property name="margin" >
+    <layout class="QGridLayout">
+     <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>
-     <property name="spacing" >
+     <property name="spacing">
       <number>6</number>
      </property>
-     <item row="0" column="1" >
-      <widget class="QLineEdit" name="lineEdit" />
+     <item row="0" column="1">
+      <widget class="QLineEdit" name="lineEdit"/>
      </item>
-     <item row="0" column="0" >
-      <widget class="QLabel" name="searchLabel" >
-       <property name="text" >
+     <item row="0" column="0">
+      <widget class="QLabel" name="searchLabel">
+       <property name="text">
         <string>&amp;Keyword:</string>
        </property>
-       <property name="buddy" >
+       <property name="buddy">
         <cstring>lineEdit</cstring>
        </property>
       </widget>
      </item>
-     <item row="0" column="2" >
-      <widget class="QPushButton" name="findButton" >
-       <property name="text" >
+     <item row="0" column="2">
+      <widget class="QPushButton" name="findButton">
+       <property name="text">
         <string>&amp;Find</string>
        </property>
       </widget>
@@ -50,20 +69,7 @@
     </layout>
    </item>
    <item>
-    <widget class="QTextEdit" name="textEdit" />
-   </item>
-   <item>
-    <spacer>
-     <property name="orientation" >
-      <enum>Qt::Vertical</enum>
-     </property>
-     <property name="sizeHint" >
-      <size>
-       <width>20</width>
-       <height>16</height>
-      </size>
-     </property>
-    </spacer>
+    <widget class="QTextEdit" name="textEdit"/>
    </item>
   </layout>
  </widget>
@@ -75,11 +81,11 @@
    <receiver>findButton</receiver>
    <slot>animateClick()</slot>
    <hints>
-    <hint type="sourcelabel" >
+    <hint type="sourcelabel">
      <x>261</x>
      <y>17</y>
     </hint>
-    <hint type="destinationlabel" >
+    <hint type="destinationlabel">
      <x>320</x>
      <y>17</y>
     </hint>
-- 
GitLab