]> git.lyx.org Git - features.git/commitdiff
More alignment fixes
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 25 Dec 2018 17:20:02 +0000 (18:20 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 25 Dec 2018 17:20:02 +0000 (18:20 +0100)
src/frontends/qt4/FindAndReplace.cpp
src/frontends/qt4/GuiSearch.cpp
src/frontends/qt4/ui/FindAndReplaceUi.ui
src/frontends/qt4/ui/SearchUi.ui

index 96fcd588bdc77c896c3fec78139c0ed4f396b63a..2b8e2974f6034904b2b4b660e1a0990049460261 100644 (file)
@@ -69,6 +69,10 @@ FindAndReplaceWidget::FindAndReplaceWidget(GuiView & view)
        replace_work_area_->stopBlinkingCaret();
        old_buffer_ = view_.documentBufferView() ? 
            &(view_.documentBufferView()->buffer()) : 0;
+
+       // align items on top
+       cbVerticalLayout->setAlignment(Qt::AlignTop);
+       pbVerticalLayout->setAlignment(Qt::AlignTop);
 }
 
 
index 02678fae60d72abea0c2866737cc52e6c69d031a..4e0c354fc60efe4164691e3f3a9f36807e47c857 100644 (file)
@@ -50,6 +50,9 @@ GuiSearch::GuiSearch(GuiView & lv)
        // fix height to minimum
        setFixedHeight(sizeHint().height());
 
+       // align items in grid on top
+       mainGridLayout->setAlignment(Qt::AlignTop);
+
        connect(buttonBox, SIGNAL(clicked(QAbstractButton *)),
                this, SLOT(slotButtonBox(QAbstractButton *)));
        connect(findPB, SIGNAL(clicked()), this, SLOT(findClicked()));
index e6d3b327840eb2fe6c99b18a0d2380b3549bc4c0..22f45e37f5236232b8a78fbe5a696000550c41f0 100644 (file)
@@ -7,7 +7,7 @@
     <x>0</x>
     <y>0</y>
     <width>283</width>
-    <height>423</height>
+    <height>359</height>
    </rect>
   </property>
   <property name="windowTitle">
          </spacer>
         </item>
         <item>
-         <layout class="QVBoxLayout" name="verticalLayout_3">
+         <layout class="QVBoxLayout" name="cbVerticalLayout">
           <item>
            <widget class="QCheckBox" name="searchbackCB">
             <property name="toolTip">
             </property>
            </widget>
           </item>
-          <item>
-           <spacer name="verticalSpacer_5">
-            <property name="orientation">
-             <enum>Qt::Vertical</enum>
-            </property>
-            <property name="sizeHint" stdset="0">
-             <size>
-              <width>20</width>
-              <height>40</height>
-             </size>
-            </property>
-           </spacer>
-          </item>
          </layout>
         </item>
         <item>
-         <layout class="QVBoxLayout" name="verticalLayout_2">
+         <layout class="QVBoxLayout" name="pbVerticalLayout">
           <item>
            <widget class="QPushButton" name="findNextPB">
             <property name="enabled">
index d4bd85ea5937477dca76bc981829cf4b668b2561..8a94abb0ed74063f0d0db5967738a39f9fce2742 100644 (file)
@@ -24,7 +24,7 @@
   </property>
   <layout class="QGridLayout" name="gridLayout_3">
    <item row="0" column="0">
-    <layout class="QGridLayout" name="gridLayout_2">
+    <layout class="QGridLayout" name="mainGridLayout">
      <item row="0" column="0" rowspan="2">
       <layout class="QGridLayout" name="gridLayout">
        <item row="0" column="0">